On Mar 15, 12:21 am, Richard Jones <[email protected]> wrote:
> > Is it possible for us to have no requirement on PyObjC? Could it be
> > that my inability to install it won't be a hindrance? :-)
>
> Actually, even more importantly .... the possibility pyglet running
> under PyPy(!), and possibly more easily ported to Py3k (at least for
> Mac users)?

The event loop and windowing require Cocoa.  The only ways
that I can think of to get around using PyObjC here are:

(a) Recreate the entire Objective-C runtime in ctypes.
    But still, I'm not sure how you would, for instance,
    create a subclass of NSWindow this way.

(b) Write a custom compiled library to handle the event
    loop and window creation, and access it from ctypes.
    But I think this goes against pyglet's design?  And
    would seem to move into PyGame territory.

But honestly, as much grief as PyObjC seems to cause, it
really does make everything much easier when it works. I
think part of the problem is that I've been trying to use
it for stuff that is not its main focus.  It's also
unfortunate that Mac OS 10.6 shipped with a beta version
and doesn't ever update it.

I'm not familiar enough with PyPy to speak about it.  And
I haven't been using Python 3 at all (don't even have it
installed).  I don't know what the status of PyObjC is with
regards to Py3k.  I was hoping that someone with more
experience could do whatever conversions were necessary
for Python 3 once the Cocoa code is merged with the trunk.
Hopefully it's not too much?

--phillip


P.S. The problems you were having earlier with
NSApplicationDidHideNotification not being defined
could possibly be fixed by inserting a line:

NSApplicationDidHideNotification = "NSApplicationDidHideNotification"

at the top of the module, but if that's not working
then probably there are other problems as well.  Might
be worth a try though.

If I can figure out a way to install ActiveState python
without interfering with all of the other versions of
python I seem to have scattered on my system, I'll see
I can work out a reliable install process for PyObjC
that gets pyglet working.

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

Reply via email to