Re: mutable deep copying?
Re: mutable deep copying?
- Subject: Re: mutable deep copying?
- From: Andrew Pinski <email@hidden>
- Date: Sun, 28 Jul 2002 15:46:52 -0400
What about doing `id temp = [myDict copy]; need = [temp
mutableCopy]; [temp release];temp=null;'?
Thanks,
Andrew Pinski
On Sunday, July 28, 2002, at 03:35 , Daryn wrote:
It seems that [myDict copy] results in a deep copy, while
[myDict mutableCopy] results in a shallow, yet mutable, copy.
What I need is a mutable deep copy of the dictionary.
My data structure is composed of simple dictionaries, arrays,
and strings. Is there a simple method by which I may obtain a
mutable copy of the entire data structure? Or do I need to
implement my own protocol to do this?
Daryn
_______________________________________________
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.
_______________________________________________
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.