In the same line of thinking, for object that don't hold memory space I need to mark on the spot, I use :
- (void) setFoo:(NSString*) bar {
[foo autorelease];
foo = [bar retain];
}
which I expect to do nothing (retain count is unchanged) when foo == bar.
I do it for concision, am I missing something?