• 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: 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.

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

  • Prev by Date: Problem with unicode keyEquivalents in MenuItems?
  • Next by Date: Re: Cocoa's Popularity
  • Previous by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Next by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Index(es):
    • Date
    • Thread