[Pyobjc-dev] NSAnyEventMask depythonifies as int, not uint in pyobjc2
Brought to you by:
ronaldoussoren
|
From: Barry W. <bar...@gm...> - 2007-11-21 01:11:25
|
I'm not tracking the pyobjc2 sources very closely, so forgive me if this has already been fixed.... I noticed that the PyInterpreter example from pyobjc2 no longer works in pyobjc2. It appears that NSAnyEventMask (imported from AppKit) depythonifies as -1 (type int) rather than an unsigned int, thus causing an exception when it's used as a parameter to NSApplication.nextEventMatchingMask_untilDate_inMode_dequeue_. Changing NSAnyEventMask to 0xffffffff (its definition, per the docs) appears to solve the problem. Is this a BridgeSupport issue? Barry |