Script Menu: Code generation
Script Menu: Code generation
- Subject: Script Menu: Code generation
- From: Alexander von Below <email@hidden>
- Date: Wed, 28 Dec 2005 23:17:48 +0100
Dear List,
the very useful Scripts menu of Xcode contains an item to create
accessor definitions.
While it is most certainly correct, I am wondering why it produces:
- (id) x {
return [[x retain] autorelease];
}
Is this not redundant? Why not just return x?
I guess that the setter code is a matter of preference. The original
code copies the new value, I have edited it to retain the value.
Your comments and thoughts on this would be very interesting.
Thanks
Alex
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden