Am 25.06.2011 um 09:56 schrieb Helge Hess:

> On Jun 10, 2011, at 6:14 AM, Richard Frith-Macdonald wrote:
>> is pretty much unique to you I think
> 
> I was also assuming that -retain can return a different object. Otherwise it 
> should be void (aka AddRef()) ...
> 

The NSObject Protocol documentation make it clear, that this is not so, and 
also gives the reason for returning self,

- (id) retain

Return Value

self.

Discussion
...
As a convenience, retain returns self because it may be used in nested 
expressions.
...


Ciao
   Nat!
---------------------------------------------------------
Apple is the steam train that owns the tracks. - S. Jobs




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to