Re: isKindOfClass vs. loading bundles: nope?!?!?!?
Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- Subject: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
- From: Marco Scheurer <email@hidden>
- Date: Sun, 24 Mar 2002 14:08:22 +0100
On Thursday, March 21, 2002, at 08:05 pm, Chris Kane wrote:
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.
The confusion could in part come from the fact that it is not proper
English. In English, we would say:
Sultan is a lion
Lion is a kind of Feline
while in Objective-C we have the equivalent of:
Sultan is a kind of Lion
This unfortunate use of isKindOf: goes back to Smalltalk.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
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.