• 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: isa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isa


  • Subject: Re: isa
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 3 Jun 2002 08:11:15 -0700

On Sunday, June 2, 2002, at 10:09 PM, Phillip Morelock wrote:

On 6/2/02 9:52 PM, "Jeff LaMarche" <email@hidden> wrote:

Although subclassing from Object in Java is not as
commonly done as subclassing from NSObject in Cocoa,
All objects in java extend java.lang.Object, whether indirectly (through
it's parent class, it's parent's parent, it's....) or directly. Directly
extending Object is done for the programmer without the programmer writing
"extends Object". It is the default unless you extend something else, but
Object is "up the chain" from every class in java.

I think he meant in Java you usually (at least for a lot of the apps I have seen) sub-class some other class lower in class hierarchy and in ObjC you usually do the opposite and use delegates.


Anyway, I think this has gone around and around enough now... if people want to muck with isa feel free but isa definition is in the domain of the runtime and the runtime can change while still being backwards compatible. If however you are tweaking isa you risk this compatibility.

-Shawn
_______________________________________________
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: isa (From: Phillip Morelock <email@hidden>)

  • Prev by Date: Re: Hunting for System Preferences
  • Next by Date: MallocDebug problem
  • Previous by thread: Re: isa
  • Next by thread: Re: isa
  • Index(es):
    • Date
    • Thread