Skip navigation.
 
mlRe: Why shouldn't I release?
FROM : stephen joseph butler
DATE : Sat Dec 01 04:28:33 2007

On Nov 30, 2007 8:54 PM, Ric L. <<email_removed>> wrote:
> This doesn't make any sense to me. By my reckoning, stringWithFormat should create a string with a retain count of 1. 'fLetterCountField setStringValue' should assign the string to the field and the field should retain the string. I should then be free to release it.


The general rule of thumb is that "release" balances "alloc", "copy",
or "mutableCopy" (I think I'm forgetting one here). You didn't call
any of those methods above, so you shouldn't call "release".

Related mailsAuthorDate
mlWhy shouldn't I release? Ric L. Dec 1, 03:54
mlRe: Why shouldn't I release? j o a r Dec 1, 03:58
mlRe: Why shouldn't I release? Andrew Farmer Dec 1, 04:02
mlRE: Why shouldn't I release? Ric L. Dec 1, 04:06
mlRe: Why shouldn't I release? Hank Heijink Dec 1, 04:15
mlRe: Why shouldn't I release? stephen joseph but… Dec 1, 04:28
mlRe: Why shouldn't I release? Frank Weinstock Dec 1, 04:40
mlRe: Why shouldn't I release? I. Savant Dec 1, 05:08