• 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: Why shouldn't I release?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why shouldn't I release?


  • Subject: Re: Why shouldn't I release?
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 30 Nov 2007 23:08:14 -0500

On Nov 30, 2007, at 10:06 PM, Ric L. wrote:

Well, after I wrote the message, I added a line:

   long retainCount = [outputString retainCount];

after the call to stringWithFormat and saw that it had a retain count of 1 - this would seem to settle the issue that I am correct on this point at least.


Just follow the memory management rules to which you were referred. The retain count is none of your business (because other background mechanisms may have an interest in your object(s) as well). Manage your memory properly and never mind the actual count.

--
I.S.




_______________________________________________

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


References: 
 >Why shouldn't I release? (From: Ric L. <email@hidden>)
 >Re: Why shouldn't I release? (From: j o a r <email@hidden>)
 >RE: Why shouldn't I release? (From: Ric L. <email@hidden>)

  • Prev by Date: NSTextField suppressing multi line input
  • Next by Date: Re: NSObject's bind:toObject:forKeyPath:options
  • Previous by thread: Re: Why shouldn't I release?
  • Next by thread: Re: Why shouldn't I release?
  • Index(es):
    • Date
    • Thread