Re: isKindOfClass vs. loading bundles: nope?!?!?!?
Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- Subject: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- From: Chris Kane <email@hidden>
- Date: Thu, 21 Mar 2002 11:05:02 -0800
On Wednesday, March 20, 2002, at 08:10 PM, Ondra Cada wrote:
that (I mean the zero in the parentheses) should be nonsense, no? Or do
I overlook something?
Others have explained that part of Objective C is that class objects are
made to look like "kinds of" the root class of the hierarchy they are in.
This (which the definitions of -isKindOf: and later -isKindOfClass:
follow) has confused people since way back in the N[eE]XTS[Tt][Ee][Pp]
days.
In the next intermediate rev of the OS, we've already added
+ (BOOL)isSubclassOfClass:(Class)aClass;
to NSObject to be a test of the hierarchy to attempt to help people with
this.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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.