Re: Determine whether class is subclass
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.