<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Alexander,<br>
    <br>
      That togl-cocoa.patch was an earlier version (about 2 years old)
    of our patch to allow Togl to work with Tk Cocoa and Mac NSOPENGL to
    support 64-bit Mac applications.  The current version of the patch
    that we use in Chimera is Togl2.1-nsopengl.patch.<br>
    <br>
       
    <a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl</a><br>
    <br>
    We use this patch with Tk 8.6 beta 1 and 2.  I have no idea if it
    will work with Tk 8.5.  I believe the current patch does not use any
    modification to Tk source, but the old patch you are trying to use
    did use a Tk modification.  That Tk modification would be found in
    some old patch revisions from our TclTk source<br>
    <br>
       
    <a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/TclTk">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/TclTk</a><br>
    <br>
    We never submitted these patches to Togl or Tk because they are a
    mess.<br>
    <br>
        Tom<br>
    <br>
    <br>
    <br>
    <br>
    <blockquote
      cite="mid:3DF6ABE3-782C-4300-835E-FA20981400A5@gmail.com"
      type="cite">
      <div>Ok I have created the patch on my own. I have got the tarball
        of Apple (TCL/TK 8.5.9 Cocoa) and patched it myself.</div>
      <div><br>
      </div>
      <div>Cheers,</div>
      <div>Alexander. </div>
      <div><br>
      </div>
      <br>
      <div>
        <div>On Sep 3, 2011, at 8:15 PM, Alexander Agathos wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">As an add-on to my mail I think that I
          need a patch to Tk-Cocoa also :
          <div><span class="Apple-style-span" style="font-family:
              Verdana, Arial, 'Bitstream Vera Sans', Helvetica,
              sans-serif; font-size: 13px; "><br>
              <table id="info" summary="Revision info"
                style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; background-image:
                initial; background-attachment: initial;
                background-origin: initial; background-clip: initial;
                background-color: rgb(247, 247, 240); border-top-width:
                1px; border-right-width: 1px; border-bottom-width: 1px;
                border-left-width: 1px; border-top-style: solid;
                border-right-style: solid; border-bottom-style: solid;
                border-left-style: solid; border-top-color: rgb(215,
                215, 215); border-right-color: rgb(215, 215, 215);
                border-bottom-color: rgb(215, 215, 215);
                border-left-color: rgb(215, 215, 215); border-collapse:
                collapse; -webkit-border-horizontal-spacing: 0px;
                -webkit-border-vertical-spacing: 0px; clear: both;
                width: 1259px; background-position: initial initial;
                background-repeat: initial initial; ">
              </table>
            </span><span class="Apple-style-span" style="font-family:
              Verdana, Arial, 'Bitstream Vera Sans', Helvetica,
              sans-serif; font-size: 13px; ">
              <table id="info" summary="Revision info"
                style="margin-top: 0px; margin-right: 0px;
                margin-bottom: 0px; margin-left: 0px; background-image:
                initial; background-attachment: initial;
                background-origin: initial; background-clip: initial;
                background-color: rgb(247, 247, 240); border-top-width:
                1px; border-right-width: 1px; border-bottom-width: 1px;
                border-left-width: 1px; border-top-style: solid;
                border-right-style: solid; border-bottom-style: solid;
                border-left-style: solid; border-top-color: rgb(215,
                215, 215); border-right-color: rgb(215, 215, 215);
                border-bottom-color: rgb(215, 215, 215);
                border-left-color: rgb(215, 215, 215); border-collapse:
                collapse; -webkit-border-horizontal-spacing: 0px;
                -webkit-border-vertical-spacing: 0px; clear: both;
                width: 1259px; display: inline !important; position:
                static; z-index: auto; ">
                <tbody style="display: inline !important; ">
                  <tr style="font: normal normal normal 13px/normal
                    Verdana, Arial, 'Bitstream Vera Sans', Helvetica,
                    sans-serif; display: inline !important; ">
                    <td class="message searchable" style="font-size:
                      11px; padding-top: 2px; padding-right: 0.5em;
                      padding-bottom: 2px; padding-left: 0.5em;
                      vertical-align: top; width: 1248px; display:
                      inline !important; ">
                      <div style="margin-top: 0px; margin-right: 0px;
                        margin-bottom: 0px; margin-left: 0px;
                        padding-top: 0px; padding-right: 0px;
                        padding-bottom: 0px; padding-left: 0px; display:
                        inline !important; ">This also requires a patch
                        to Tk Cocoa to expose the Mac</div>
                    </td>
                  </tr>
                </tbody>
              </table>
            </span><span class="Apple-style-span" style="font-family:
              Verdana, Arial, 'Bitstream Vera Sans', Helvetica,
              sans-serif; font-size: 13px; ">
              <table summary="Revision info" style="margin-top: 0px;
                margin-right: 0px; margin-bottom: 0px; margin-left: 0px;
                background-image: initial; background-attachment:
                initial; background-origin: initial; background-clip:
                initial; background-color: rgb(247, 247, 240);
                border-top-width: 1px; border-right-width: 1px;
                border-bottom-width: 1px; border-left-width: 1px;
                border-top-style: solid; border-right-style: solid;
                border-bottom-style: solid; border-left-style: solid;
                border-top-color: rgb(215, 215, 215);
                border-right-color: rgb(215, 215, 215);
                border-bottom-color: rgb(215, 215, 215);
                border-left-color: rgb(215, 215, 215); border-collapse:
                collapse; -webkit-border-horizontal-spacing: 0px;
                -webkit-border-vertical-spacing: 0px; clear: both;
                width: 1259px; position: static; z-index: auto; ">
                <tbody>
                  <tr style="font: normal normal normal 13px/normal
                    Verdana, Arial, 'Bitstream Vera Sans', Helvetica,
                    sans-serif; ">
                    <td class="message searchable" style="font-size:
                      11px; padding-top: 2px; padding-right: 0.5em;
                      padding-bottom: 2px; padding-left: 0.5em;
                      vertical-align: top; width: 1248px; ">
                      <div style="margin-top: 0px; margin-right: 0px;
                        margin-bottom: 0px; margin-left: 0px;
                        padding-top: 0px; padding-right: 0px;
                        padding-bottom: 0px; padding-left: 0px; "><br>
                      </div>
                      <div style="margin-top: 0px; margin-right: 0px;
                        margin-bottom: 0px; margin-left: 0px;
                        padding-top: 0px; padding-right: 0px;
                        padding-bottom: 0px; padding-left: 0px; ">
                        window needed for making an OpenGL context.</div>
                    </td>
                  </tr>
                </tbody>
              </table>
            </span><br>
          </div>
          <div>Where can I find this patch? </div>
          <div><br>
          </div>
          <div>Cheers,</div>
          <div>Alexander.</div>
          <div><br>
            <div class="gmail_quote">On Sat, Sep 3, 2011 at 7:02 PM,
              Alexander Agathos <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:alexander.agathos@gmail.com">alexander.agathos@gmail.com</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex;">
                <div style="word-wrap:break-word">Hi,
                  <div><br>
                  </div>
                  <div>I have seen a patch concerning compiling Togl (a
                    software component of Chimera) in Cocoa based TCL/TK</div>
                  <div><br>
                  </div>
                  <div><a moz-do-not-send="true"
href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl/togl-cocoa.patch"
                      target="_blank">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl/togl-cocoa.patch</a></div>
                  <div><br>
                  </div>
                  <div>The problem is that I can't compile it because of
                    the function in the patch :</div>
                  <div><br>
                  </div>
                  <span style="font-family:Verdana, Arial, 'Bitstream
                    Vera Sans', Helvetica, sans-serif;font-size:13px"></span>
                  <div>
                    <span
                      style="border-collapse:collapse;font-family:monospace;font-size:11px"><span
                        style="color:rgb(0, 0,
                        0);background-color:rgb(221, 255, 221)">WindowRef
                        r = TkMacOSXDrawableWindowRef(d);</span></span></div>
                  <div><font face="monospace"><span
                        style="border-collapse:collapse;font-size:11px"><br>
                      </span></font></div>
                  <div><font face="monospace"><span
                        style="border-collapse:collapse;font-size:11px">The
                        function TkMacOSXDrawableWindowRef does not
                        exist anymore. Is it possible to guide me on
                        what I need to do?</span></font></div>
                  <div><font face="monospace"><span
                        style="border-collapse:collapse;font-size:11px"><br>
                      </span></font></div>
                  <div><font face="monospace"><span
                        style="border-collapse:collapse;font-size:11px">Cheers,</span></font></div>
                  <div><font face="monospace"><span
                        style="border-collapse:collapse;font-size:11px">Alexander.</span></font></div>
                  <font color="#888888">
                    <div> </div>
                  </font></div>
              </blockquote>
            </div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Chimera-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a>
<a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a>
</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>