Re: NSMutableDictionary Memory Question
Re: NSMutableDictionary Memory Question
- Subject: Re: NSMutableDictionary Memory Question
- From: mmalc crawford <email@hidden>
- Date: Fri, 23 Mar 2007 11:29:24 -0700
On Mar 23, 2007, at 10:51 AM, Mike Abdullah wrote:
As you release myDict, it decreases its retain count. In all likely
hood, that is enough to deallocate it. As part of its deallocation,
the dictionary will release all keys and values, and they in turn
may well be deallocated.
In general, this depends on your application architecture, and what
objects are being used by what other objects.
It is sufficient to say, "adhere to your side of the memory management
rules". Whether objects (and objects related to those objects) get
deallocated immediately after you relinquish ownership should in
general not be of interest.
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