
Hi, I have seen a patch concerning compiling Togl (a software component of Chimera) in Cocoa based TCL/TK http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl/togl-cocoa... The problem is that I can't compile it because of the function in the patch : WindowRef r = TkMacOSXDrawableWindowRef(d); The function TkMacOSXDrawableWindowRef does not exist anymore. Is it possible to guide me on what I need to do? Cheers, Alexander.

As an add-on to my mail I think that I need a patch to Tk-Cocoa also : This also requires a patch to Tk Cocoa to expose the Mac window needed for making an OpenGL context. Where can I find this patch? Cheers, Alexander. On Sat, Sep 3, 2011 at 7:02 PM, Alexander Agathos < alexander.agathos@gmail.com> wrote:

Hi Alexander, 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. http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/Togl 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 http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/foreign/TclTk We never submitted these patches to Togl or Tk because they are a mess. Tom
participants (2)
-
Alexander Agathos
-
Tom Goddard