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 ?




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:
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>)
 >Re: List of all available classes ? (From: "Martin Wilz" <email@hidden>)
 >Re: List of all available classes ? (From: Guy English <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.