Re: isKindOfClass vs. loading bundles: nope?!?!?!?
Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- Subject: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- From: Andy Lee <email@hidden>
- Date: Thu, 21 Mar 2002 19:39:58 -0500
At 10:19 PM +0100 3/21/02, Ondra Cada wrote:
[anyclass isKindOfClass:rootclass] is always YES
[anyclass isKindOfClass:anyotherclass] is always NO
That's since a class behaves (by some internal magic) de-facto as a
root class' instance, and isKindOfClass: is consistent with that.
Nicely stated, Ondra.
that I lived under a *very* strong impression that, given the
relative meaninglessness of this behaviour +isKindOfClass, it was
quite naturally overridden to give results based on the class
hierarchy.
Nevertheless that impression proved wrong. The only remaining puzzle
is where the heck I've got it ;)
Maybe Smalltalk? I don't remember what the various "is-kind-of"
methods were, but they may have behaved in a more natural-seeming way.
Well, whatever. I for one am satisfied now.
--Andy
_______________________________________________
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.