retain and autorelease
retain and autorelease
- Subject: retain and autorelease
- From: Darwin Zins <email@hidden>
- Date: Wed, 12 Nov 2003 21:25:29 -0600
When I do this:
ABPerson * newMacABEntry;
newMacABEntry = (ABPerson *) [_macAddressBook recordForUniqueId:
abID ];
Should I then do: [newMacABEntry retain]; and when I am done with it
[newMacABEntry autorelease];
The book I am reading seems to say this as a rule of thumb, I am
wondering if this applies in this specific instance.
Thanks in advance for any help,
Darwin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.