• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMutableDictionary Memory Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSMutableDictionary Memory Question (From: Matt <email@hidden>)
 >Re: NSMutableDictionary Memory Question (From: Mike Abdullah <email@hidden>)

  • Prev by Date: more efficient way to get CGImageRef from NSBitMapImageRep *
  • Next by Date: Core data question
  • Previous by thread: Re: NSMutableDictionary Memory Question
  • Next by thread: Re: NSMutableDictionary Memory Question
  • Index(es):
    • Date
    • Thread