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.
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.
댓글