gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSIMap


From: Nat!
Subject: Re: GSIMap
Date: Sat, 25 Jun 2011 15:29:44 +0200

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]