Re: NSMutableDictionary <-- setter method
Re: NSMutableDictionary <-- setter method
- Subject: Re: NSMutableDictionary <-- setter method
- From: J Nozzi <email@hidden>
- Date: Wed, 28 Apr 2004 15:50:28 -0400
On Apr 28, 2004, at 3:17 PM, Jonathan E. Jackel wrote:
Doesn't seem like you understand memory management yet. Did this
method
create theCities? No. Did this method retain theCities? No. So
there's
no reason to release theCities, and in fact it's a mistake to do so.
I'd have to say this is one of the better summations of memory
management I've seen to date! Quite succinct. ;-)
Anyone struggling to grasp this issue can solve most of their
problems just by reading that paragraph. Where it gets tricky for me is
the autorelease pool ... :-(
- J
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.