• 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: List of all available classes ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Re: List of all available classes ?
  • Next by Date: controls in menu
  • Previous by thread: Re: List of all available classes ?
  • Next by thread: Creating Cocoa Application Installer via Xcode 2.2?
  • Index(es):
    • Date
    • Thread