• 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 <-- setter method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >RE: NSMutableDictionary <-- setter method (From: "Jonathan E. Jackel" <email@hidden>)

  • Prev by Date: Re: Enable Objective-C exception handling. [-fobjc-exceptions] causes additional warnings on pointers?
  • Next by Date: RE: NSMutableDictionary <-- setter method
  • Previous by thread: RE: NSMutableDictionary <-- setter method
  • Next by thread: RE: NSMutableDictionary <-- setter method
  • Index(es):
    • Date
    • Thread