• 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
NSMutableDictionary Memory Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableDictionary Memory Question


  • Subject: NSMutableDictionary Memory Question
  • From: Matt <email@hidden>
  • Date: Fri, 23 Mar 2007 13:34:34 -0400

So I have a simple question that relates back to basic Cocoa memory management. I have a dictionary with a few other dictionaries as keys as well as a few nsnumbers. When deallocating my object that contains this structure, I'm a bit confused on how to successfully "kill" all retained objects. :)

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!

Matt
Mac Fanatic
http://www.macfanatic.net/
_______________________________________________

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


  • Follow-Ups:
    • Re: NSMutableDictionary Memory Question
      • From: Andy Lee <email@hidden>
    • Re: NSMutableDictionary Memory Question
      • From: Mike Abdullah <email@hidden>
    • Re: NSMutableDictionary Memory Question
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: setKeyEquivalent: gives two action invocations
  • Next by Date: Re: NSMutableDictionary Memory Question
  • Previous by thread: Re: Cocoa Scripting, CoreData and make command
  • Next by thread: Re: NSMutableDictionary Memory Question
  • Index(es):
    • Date
    • Thread