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,

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.patch

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.