Re: NSMutableDictionary Memory Question
Re: NSMutableDictionary Memory Question
- Subject: Re: NSMutableDictionary Memory Question
- From: mmalc crawford <email@hidden>
- Date: Fri, 23 Mar 2007 10:48:48 -0700
On Mar 23, 2007, at 10:34 AM, Matt wrote:
If I have a mutabledictionary with other mutabledictionaries as keys
and send the top-level dic a -removeAllObjects method, and therefore
the lower-level dictionaries are giving a release message, do those
in turn pass that release message onto their objects? I had looked
at a loop with keyEnumerators (although you can't modify the
dictionary), iterating through an array of returned keys, etc.
Any general advice is appreciated!
You simply make sure you take care of your side of the memory
management contract; other objects are expected to adhere to it as well.
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
>
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmPractical.html
>
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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