Re: List of all available classes ?
Re: List of all available classes ?
- Subject: Re: List of all available classes ?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 28 Feb 2006 18:50:58 -0800
On Feb 28, 2006, at 7:28 AM, Guy English wrote:
if ( [myObject isKindOfClass: [NSObject class]] ) { /* blah */ };
Actually, for safety's sake, you should just walk the inheritance
tree by checking the superclass field until you get to NSObject or
Nil. Not all of the classes implement -isKindOfClass:.
-jcr
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden