FROM : Nick Zitzmann
DATE : Thu Oct 07 20:30:54 2004
On Oct 7, 2004, at 11:39 AM, Aaron Boothello wrote:
> i want a second object that is an identical copy of mySuperObject. ( i
> dont want two rferences to the same object by just using 'retain').
> i can create it by:
> mySuperObject2 = [[superObject alloc] init];
>
> If i edit the superObject2, the changes should not appear in
> superObject.
>
> How do i do this ?
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Protocols/NSCopying.html#//apple_ref/occ/intf/NSCopying>
Nick Zitzmann
<http://www.chronosnet.com/>
DATE : Thu Oct 07 20:30:54 2004
On Oct 7, 2004, at 11:39 AM, Aaron Boothello wrote:
> i want a second object that is an identical copy of mySuperObject. ( i
> dont want two rferences to the same object by just using 'retain').
> i can create it by:
> mySuperObject2 = [[superObject alloc] init];
>
> If i edit the superObject2, the changes should not appear in
> superObject.
>
> How do i do this ?
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Protocols/NSCopying.html#//apple_ref/occ/intf/NSCopying>
Nick Zitzmann
<http://www.chronosnet.com/>
| Related mails | Author | Date |
|---|---|---|
| Aaron Boothello | Oct 7, 19:39 | |
| Nick Zitzmann | Oct 7, 20:30 | |
| Aaron Boothello | Oct 9, 19:30 | |
| Nick Zitzmann | Oct 9, 22:17 |






Cocoa mail archive

