Re: [OT] Retain count riddle
Re: [OT] Retain count riddle
- Subject: Re: [OT] Retain count riddle
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 31 Mar 2004 13:58:38 +0200
On mercredi, mars 31, 2004, at 01:09 PM, Kay Roepke wrote:
On 31. Mrz 2004, at 12:30 Uhr, Stefan Fisk wrote:
why not just: #define SAFE_SET(old,new) [old release]; old = [new
retain];
or am i just being stupid?
Suppose old == new. Boom. new is gone and you're out of luck.
Hum,
#define SAFE_SET(old,new) [old autorelease]; old = [new retain];
could work.
_______________________________________________
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.