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

  • Follow-Ups:
    • Re: isKindOfClass vs. loading bundles: nope?!?!?!?
      • From: Marco Scheurer <email@hidden>
References: 
 >isKindOfClass vs. loading bundles: nope?!?!?!? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSTextView and setString
  • Next by Date: mouseMoved problems
  • Previous by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Next by thread: Re: isKindOfClass vs. loading bundles: nope?!?!?!?
  • Index(es):
    • Date
    • Thread