Memory management and Objects.(Newbie)
Memory management and Objects.(Newbie)
- Subject: Memory management and Objects.(Newbie)
- From: Aaron Boothello <email@hidden>
- Date: Fri, 8 Oct 2004 01:39:19 +0800
Ive got a superObject allocated as:
mySuperObject = [[superObject alloc] init];
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 ? (there is a lot of information stored in each
superObject, along with references to other other objects.... which i
need identicals copies made when i create mySuperObject2.)
How do i do this ?
Cheers,
Aaron.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden