On Sun, Jan 23, 2011 at 7:41 PM, Richard Jones <[email protected]> wrote: > On Sun, Jan 23, 2011 at 8:40 PM, evil.phillip <[email protected]> wrote: >> I've spent my free time over the last two weeks hacking away at the >> cocoa-port started by Tristam MacDonald and Richard Thomas. Here's >> what I've added so far: >> >> * Wrote a quartz-based image loader. (needs testing to make sure all >> formats work) >> >> * Rewrote the font code so that it can use fonts that are added with >> pyglet.font.add_file. As far as I can tell, there is no way to >> register a font that gets loaded from memory, so I had to change quite >> a bit here. As a side-effect also fixed a bug that garbled fonts when >> running 64-bit. >> >> * Fixed the key input handler. Can now receive key events for the >> modifier keys (shift, control, etc). Also fixed problems where multi >> key presses were translated into key equivalents, preventing proper >> on_key_release messages from being sent. >> >> * Removed spurious release messages being sent to the NSAutoRelease >> pools. > > Sounds promising! Thanks!
Ditto. Excellent to see someone working on this again! >> Still left to do: >> >> * Switching to fullscreen from windowed mode doesn't work. I plan on >> looking at this next, but I think the approved method for doing this >> has changed in Mac OS 10.6. >> >> * vsync doesn't work. I'm not sure that this is currently possible to >> fix, since the necessary function is exposed incorrectly due to a >> PyObjC bug, and I'm not very optimistic about the state of PyObjC >> improving any time soon. > > It doesn't look like the project is dead. Have you talked to the devs > about the problem? It has been listed as a known problem in the PyObjC docs for a very long time - I ran into it when I started this port. However, there is a patch on the pyobjc.devel list that claims to fix this problem. Perhaps we can convince the PyObjC to integrate it for the next version? http://osdir.com/ml/python.pyobjc.devel/2006-09/msg00056.html If not, I *might* be able to engineer a ctypes hack, since you can synthesise ObjC methods from C (with a healthy dose black magic). -- Tristam MacDonald System Administrator, Suffolk University Math & CS Department tel: (617) 973-5398 http://swiftcoder.wordpress.com/ -- 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.
