• 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: Douglas Davidson <email@hidden>
  • Date: Fri, 19 Oct 2007 11:37:00 -0700


On Oct 19, 2007, at 11:28 AM, Jason wrote:

Is there a way for me to get a list of all classes that an NSBundle
contains? I only see two methods listed on NSBundle that are close to what
I need (principalClass and classNamed:) and both require me to already know
the name of the class I want to load. What I'm trying to do is get a list
of classes inside a bundle (which I may not know the contents of) and print
out the class names of the ones that match a certain criteria.

When NSBundle loads a bundle, it sends out an NSBundleDidLoadNotification, attached to which is a list of the loaded classes (under the NSLoadedClasses key). If you want to get information about the class content of a bundle without having to load it, I'm afraid you'll have to examine the executable yourself.


Douglas Davidson

_______________________________________________

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: Jason <email@hidden>
References: 
 >Getting list of classes inside NSBundle (From: Jason <email@hidden>)

  • Prev by Date: Getting list of classes inside NSBundle
  • Next by Date: Re: Getting list of classes inside NSBundle
  • Previous by thread: Getting list of classes inside NSBundle
  • Next by thread: Re: Getting list of classes inside NSBundle
  • Index(es):
    • Date
    • Thread