Re: [Pyobjc-dev] Re: NSAnyEventMask as unsigned?
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-10-29 18:51:03
|
On Oct 29, 2003, at 1:43 PM, Ronald Oussoren wrote: > > On 29 okt 2003, at 19:09, Bob Ippolito wrote: >> >> In any case, because this is Python, any sort of bit flag or mask >> really needs to treated as if it were unsigned or else bad things >> start happening and warnings get thrown all over the place (or >> probably break in 2.4). > > There won't be warnings because we create the int/long objects from C, > but things might still break in 2.4. Before I committed the fix, I got an exception when I used NSAnyEventMask >> It would be awesome if you could write up some quick documentation as >> to how to run the code generators and how to make them respect manual >> overrides (for signatures, at least). I took a quick look at them, >> but I didn't quite get it. > > Running Scripts/CodeGenerators/cocoa_generator.py from the top of the > PyObjC tree should work. This script is spawned by setup.py as well. > > The protocol generator in Scripts/gen_all_protocols.py must be started > manually. I've just hacked in a feature to override signatures. Great! -bob |