• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting list of classes inside NSBundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting list of classes inside NSBundle
      • From: Uli Kusterer <email@hidden>
References: 
 >Getting list of classes inside NSBundle (From: Jason <email@hidden>)
 >Re: Getting list of classes inside NSBundle (From: Douglas Davidson <email@hidden>)
 >Re: Getting list of classes inside NSBundle (From: Jason <email@hidden>)
 >Re: Getting list of classes inside NSBundle (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Question Mark Cursor
  • Next by Date: Cocoa Developers needed Austin, TX
  • Previous by thread: Re: Getting list of classes inside NSBundle
  • Next by thread: Re: Getting list of classes inside NSBundle
  • Index(es):
    • Date
    • Thread