I've finished cleaning up the Cocoa port so that it can be merged back into the main branch. I added a new options key named 'darwin_cocoa'. Adding the lines:
import pyglet pyglet.options['darwin_cocoa'] = True to the top of a pyglet program will tell it to use the Cocoa implementation on Mac OS X instead of Carbon. This option is set to False by default, unless pyglet is running inside of a 64-bit Python. You can check out the branch for testing with the commands: hg clone https://pyglet.googlecode.com/hg/ pyglet-cocoa cd pyglet-cocoa hg update cocoa-port I've then just been placing a symbolic link to pyglet-cocoa/pyglet in the same directory as my pyglet programs. Mac OS X 10.6 and PyObjC 2.2 or 2.3 are required. I've been testing it against both PyObjC 2.2b3 and 2.3. Certain things, such as screen mode switching and vsync require PyObjC 2.3 to work properly. I've done a trial run of the merge using: hg clone https://pyglet.googlecode.com/hg/ pyglet-merge cd pyglet-merge hg merge cocoa-port then resolving the very minor conflict in pyglet/app/base.py. It looks like everything is working fine to me. If there aren't any objections, then I will go ahead and push the merge. --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.
