Is a release required? Not all properties are already processed automatically?
, . @property @synthesize, , , , dealloc .
, IBOutlet - Interface Builder, , IB. , Cmd-click IBOutlet, :
#ifndef IBOutlet
#define IBOutlet
#endif
IBAction, void.
, , ...?
, dealloc . retainCount , - .
, @synthesize . @property @synthesize , - :
@property(retain) NSString *foo;
@synthesize foo;
- (void) foo {
return foo;
}
- (void) setFoo: (NSString*) newFoo {
if (newFoo == foo)
return;
[foo release];
foo = [newFoo retain];
}
, , . , dealloc.