On Friday, October 25, 2002, at 05:06 PM, Dan Sugalski wrote:
Unless you're going to automagically generate it using the introspective bits of objective C for it... :)That's exactly what it does. It calls objc_getClassList() to get a list of registered classes, and generates all of the corresponding @ISA arrays.
Because it queries the ObjC runtime, any and all classes linked into the executable are wrapped - including private classes, classes from other linked frameworks, and classes I've never even heard of. On my system, it reports 622 classes found - that's 400 more than I'd written wrappers for by hand.
It even generates wrappers for classes found in the CamelBones framework itself - I'm not certain what would happen if you tried to use those, though. I think your Mac would implode or something. :-)
The CBWrapRegisteredClasses() function is exposed to Perl, as well. So, you can use NSBundle to load a plugin bundle, call this function, and any classes that were found in the bundle will be wrapped.
That PDF you pointed me to - "The Objective-C Programming Language" - is magic. Pure magic. :-)
sherm--
If you listen to a UNIX shell, can you hear the C?
