Re: ARC Extending Lifetime of Objects
Re: ARC Extending Lifetime of Objects
- Subject: Re: ARC Extending Lifetime of Objects
- From: Andreas Grosam <email@hidden>
- Date: Mon, 23 Jul 2012 13:57:33 +0200
On 23.07.2012, at 13:09, Mike Abdullah wrote:
> Aha, now we're talking. You want -initWithDictionary:copyItems:
No, this is not a deep copy.
Suppose, there is an element within the array, whose value is a mutable dictionary. If I change the that mutable dictionary (or its values), the copy and the dictionary would still compare equal to the copy (since children haven't been copied).
Thus, I need to define a deepCopy method for NSDictionary (and NSArray, too).
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden