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".
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 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

