Re: Getting list of classes inside NSBundle
Re: Getting list of classes inside NSBundle
- Subject: Re: Getting list of classes inside NSBundle
- From: Jason <email@hidden>
- Date: Fri, 19 Oct 2007 12:42:52 -0600
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!
On 10/19/07, Douglas Davidson <email@hidden> wrote:
>
>
> 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