Re: [Pyobjc-dev] Enums on 10.2
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-09-27 15:34:33
|
On Friday, Sep 27, 2002, at 16:56 Europe/Amsterdam, bb...@fr... wrote: > The various autogenned files in the Cocoa module were done against the > 10.1 headers. > > Is there any reason not to regenerate the files for 10.2? The most important reason for them being agains 10.1 is that I completely forgot to update them. There is one problem with updating them: The resulting files will not compile on 10.1 (for obvious reasons). > > (I ask because I need access to the enumerated types for > NSProgressIndicator -- some of which are new to 10.2). > > BTW: Running the enum generator script against NSOpenGL.h picks up > defines for "if" and "endif" -- that would likely not make things work > well. An enum with an embedded #define, I'm not surprised this doesn't do what you want. The generator scripts are quick hacks to avoid creating the mappings manually. I've started on a slightly cleaner version, but haven't made a lot of progress with that. It only extracts enum values at the moment, and suffers from the same bug as the current version of the script. Ronald |