Hi all, I've been testing the cocoa port and things works almost flawlessly (I had to add a 'pyglet.window.cocoa' in the setup.py file). Thanks very much for this port.
Nicolas On Mar 21, 7:06 am, Phillip Nguyen <[email protected]> wrote: > On Mar 16, 4:49 am, Greg Ewing <[email protected]> wrote: > > > Phillip Nguyen wrote: > > > I've been playing around with this and I've managed > > > to recreate enough of the Objective-C runtime in > > > ctypes to start up a basic application with a plain > > > NSWindow, > > > That's quite interesting! If you manage to get this working > > in a reasonably generic way, I'd like to see how you do it, > > because it may have relevance to PyGUI. > > I made quite a few breakthroughs the past few days, > and I now have a version of pyglet that uses only > ctypes for the cocoa branch. No more PyObjC! > > Unfortunately the resulting code is what I would > affectionately call ugly. I haven't yet come up with > a good way of wrapping the Objective-C objects, so > currently the Objective-C code > > [MyObject doSomethingWithInt:7] > > would be written as > > send_message(MyObject, 'doSomethingWithInt:', 7) > > I didn't want to add another branch for what is > currently very experimental, so I've started > a separate clone for anyone who wishes to look at > or use this code. You can check it out with: > > hg clonehttps://evilphillip-cocoa-ctypes.googlecode.com/hg/pyglet- > ctypes > > And I started a separate project for the Objective-C > runtime library. It's at > > http://code.google.com/p/objective-ctypes/ > > currently nothing more than the one module and a few > simple examples. If you have any suggestions for how to > improve this, I'd be glad to hear them. > > --phillip -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.
