Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List of all available classes ?



Hi Martin,

thank you for pointing to this post. I'll have to overthink my search
techniques...

So with the information linked to, I guess I'll have to reformulate my
question:

How do I get a list of classes that are a subclasses of NSObject (e.g.
available for sending
messages to) ?

My interpretation of the linked to posts is it would be o.k. to use the
objc_class struct and
evaluate the super pointer until I get to a class with name NSObject or a
nil super class
to decide, if a given class is derived from NSObject ?

Are there simpler methods, that work (without messing with the c structures)
?

Thanks,
Martin


On 28/02/06, Martin Wierschin <email@hidden> wrote:
>
> > Does anyone know a way to get an Array of all currently available
> > classes
> > linked into the application space at runtime ?
>
> You'll want to use the function "objc_getClassList". But just be
> careful:
>
> http://www.cocoabuilder.com/archive/message/cocoa/2002/1/15/71392
>
> ~Martin
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >List of all available classes ? (From: "Martin Wilz" <email@hidden>)
 >Re: List of all available classes ? (From: Martin Wierschin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.