Re: Getting list of classes inside NSBundle
Re: Getting list of classes inside NSBundle
- Subject: Re: Getting list of classes inside NSBundle
- From: glenn andreas <email@hidden>
- Date: Fri, 19 Oct 2007 16:51:34 -0500
On Oct 19, 2007, at 3:57 PM, Uli Kusterer wrote:
Am 19.10.2007 um 20:42 schrieb Jason:
Oh, I have no problem with having to load it. I assumed that I
would have
to, and it looks like once I do, I'll be up and running. Thanks
to everyone
for the quick replies!
Just in case you're not aware: There's a +load method that gets
called on every class when it's loaded. If you want this list so
you can register certain classes with a central registry, it might
be more elgant, efficient and easier to just have a +load method
that adds [self class] to your registry.
Not sure if that is as good of an idea - from the docs:
Due to the amount of uncertainty about the environment at the point
that load is invoked, you should avoid using load whenever possible.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden