• 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: How to check if a class derives from another?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check if a class derives from another?


  • Subject: Re: How to check if a class derives from another?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 5 Oct 2009 18:41:38 -0700


On Oct 5, 2009, at 6:35 PM, Rick Mann wrote:

I have a need to tell if a class I'm loading dynamically is derived from another class. How do I do this?


Class justLoadedClass = ... ;
if ([justLoadedClass isSubclassOfClass: [MyBaseClass class]]) {
	...
}

—Jens

_______________________________________________

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


  • Follow-Ups:
    • Re: How to check if a class derives from another?
      • From: Rick Mann <email@hidden>
References: 
 >How to check if a class derives from another? (From: Rick Mann <email@hidden>)

  • Prev by Date: How to check if a class derives from another?
  • Next by Date: Re: How to check if a class derives from another?
  • Previous by thread: How to check if a class derives from another?
  • Next by thread: Re: How to check if a class derives from another?
  • Index(es):
    • Date
    • Thread