FROM : I. Savant
DATE : Sat Dec 01 05:08:14 2007
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.
DATE : Sat Dec 01 05:08:14 2007
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.
| Related mails | Author | Date |
|---|---|---|
| Ric L. | Dec 1, 03:54 | |
| j o a r | Dec 1, 03:58 | |
| Andrew Farmer | Dec 1, 04:02 | |
| Ric L. | Dec 1, 04:06 | |
| Hank Heijink | Dec 1, 04:15 | |
| stephen joseph but… | Dec 1, 04:28 | |
| Frank Weinstock | Dec 1, 04:40 | |
| I. Savant | Dec 1, 05:08 |






Cocoa mail archive

