• 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: initWithCoder / unarchiveObjectWithData Memory Management Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithCoder / unarchiveObjectWithData Memory Management Question


  • Subject: Re: initWithCoder / unarchiveObjectWithData Memory Management Question
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 20 Feb 2010 09:39:00 -0800
  • Thread-topic: initWithCoder / unarchiveObjectWithData Memory Management Question

On Sat, 20 Feb 2010 01:47:27 -0500, Thomas Wetmore <email@hidden> said:
>The question came up because I found a case in my code where I convinced myself
I was over-releasing an object created in this fashion

You will never over-release an instance if you follow the basic rule - if
and only if you yourself copied it, alloced it, or retained it (the CAR
rule), you may (and should) balance that call with one eventual release (or
autorelease).

m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Prev by Date: Re: NSTableView with PopUpButtonCell column with different content per row
  • Next by Date: Re: Cocoa equivalent for 'InstallApplicationEventHandler'
  • Previous by thread: Re: initWithCoder / unarchiveObjectWithData Memory Management Question
  • Next by thread: Cocoa equivalent for 'InstallApplicationEventHandler'
  • Index(es):
    • Date
    • Thread