NSMutableDictionary Memory Question
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