• 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: isKindOfClass:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isKindOfClass:


  • Subject: Re: isKindOfClass:
  • From: Kevin Callahan <email@hidden>
  • Date: Sat, 08 May 2010 13:03:23 -0700

On May 8, 2010, at 12:59 PM, Andy Lee wrote:

> On May 8, 2010, at 3:51 PM, Kevin Callahan wrote:
>> for example, you can't do this:
>>
>> Class classFromString = NSClassFromString(string);
>>
>> [classFromString isKindOfClass:[SomeClass class]];
>>
>> I don't want to instantiate classFromString in order to check if it's a subclass of SomeClass.
>>
>> What's the best way to check for class inheritance without instantiating?
>
> Hi Kevin,
>
> I think you want the class method +isSubclassOfClass:.
>
> --Andy
>

yes indeed ..
thanks
don't know why I didn't check class methods ..
thanks again

K

_______________________________________________

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

References: 
 >isKindOfClass: (From: Kevin Callahan <email@hidden>)
 >Re: isKindOfClass: (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: isKindOfClass:
  • Next by Date: Re: isKindOfClass:
  • Previous by thread: Re: isKindOfClass:
  • Next by thread: Re: isKindOfClass:
  • Index(es):
    • Date
    • Thread