• 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: isKindOfClass vs. loading bundles: nope?!?!?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: isKindOfClass vs. loading bundles: nope?!?!?!? (From: Chris Kane <email@hidden>)

  • Prev by Date: Re: Multiple instantiations of variables & class
  • Next by Date: string coloring
  • Previous by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Next by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Index(es):
    • Date
    • Thread