3 ,
, .
@property (retain) aMember;
, , -aMember -setAMember: . ( ), (.. , , ), / .
@synthesize aMember;
, setter getter . , getter.
[aMember release];
Whether runtime should be indicated that when an object is freed, it no longer needs to refer to this instance variable. This is necessary because when you use reference counting rather than garbage collection, the runtime does not automatically clean up unwanted objects.
Each of these lines does a different thing. So you do not do the same thing three times.
source
share