• 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: Christopher Hickman <email@hidden>
  • Date: Fri, 19 Oct 2007 11:37:05 -0700

On Friday, October 19, 2007, at 02:30PM, "Jason" <email@hidden> wrote:
>Is there a way for me to get a list of all classes that an NSBundle
>contains?

Yes.The userInfo dictionary of the NSBundleDidLoadNotification contains the information you require:

@"NSLoadedClasses"
 An NSArray object containing the names (as NSString objects) of each class that was loaded

See: http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/c/data/NSBundleDidLoadNotification
_______________________________________________

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

References: 
 >Getting list of classes inside NSBundle (From: Jason <email@hidden>)

  • Prev by Date: Re: Getting list of classes inside NSBundle
  • Next by Date: Re: NSMessagePort/NSSocketPort & Distributed Objects [Solved]
  • Previous by thread: Re: Getting list of classes inside NSBundle
  • Next by thread: NSTextView drag logs pasteboard message
  • Index(es):
    • Date
    • Thread