Cocoa Dev Central: Learn Objective-C

Cocoa Dev Central: Learn Objective-C


Multi-Input Method
* in header
-(BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile;


* in use
BOOL result = [myData writeToFile:@"/tmp/log.txt" atomically:NO];


* in @selector
These are not just named arguments.
The method name is actually writeToFile:atomically: in the runtime system.

댓글

이 블로그의 인기 게시물

Publish to my blog (weekly)

Publish to my blog (weekly)