• 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: Determine whether class is subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine whether class is subclass


  • Subject: Re: Determine whether class is subclass
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 24 Mar 2002 18:09:04 +0100

On Sunday, March 24, 2002, at 05:09 , Drew McCormack wrote:

Is there a method or means of determining whether one class is a subclass of another, short of instantiating?
I know I can use "isKindOfClass:" if I have an instance, but I want a class method or similar so that I can determine if one class is an ancestor of another.

In future, there will be a direct support in Foundation. For now, you should DIY (probably by climbing up via +superclass, checking whether you hit the subclass on each step).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Determine whether class is subclass (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: Apple and Developers (was lots of different subjects)
  • Next by Date: Programmatically selecting items in a popup menu?
  • Previous by thread: Determine whether class is subclass
  • Next by thread: NSrange utilities
  • Index(es):
    • Date
    • Thread