Re: isa
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>) |