Re: Why shouldn't I release?
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