Re: Object Copying Question
Re: Object Copying Question
- Subject: Re: Object Copying Question
- From: Andreas Mayer <email@hidden>
- Date: Sat, 14 Sep 2002 16:21:56 +0200
Am Samstag, 14.09.02 um 15:49 Uhr schrieb Greg Hulands:
When doing the above, won't cellCopy only have enough memory for
super, and that the memory for self will not have been allocated?
No.
Am i missing something here?
super does refer to the same object as self.
The only difference is that it tells the run-time system to use the
method implementation of self's superclass.
Somewhere up the hierarchy the object will actually create a copy of
the memory it occupies. That operation will take in count the actual
size of the object, regardless of the way it was told to do so.
At least that is how I think I understood that Objective-C's OO system
works. :)
bye. Andreas.
_______________________________________________
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.