Whats Wrong?
Whats Wrong?
- Subject: Whats Wrong?
- From: Luke Sands <email@hidden>
- Date: Sun, 28 Oct 2001 19:23:35 +0000
Can anyone help me?, I'm new to cocoa programming so I don't have a clue
why my code isn't working. I know the actually codes correct and all the
paths are correct but I bet I've missed out some '{' , and '}' and ';'
Would anyone be so kind to correct it quickly? I would be so
greatful.....
#import "MyCopyButton.h"
@implementation MyCopyButton
- (IBAction)clicked:(id)sender
NSString *source = @"/tmp/quarterly_report.rtf";
NSString *destination = [[NSHomeDirectory()
stringByAppendingPathComponent:@"Library"]
stringByAppendingPathComponent:@"Reports"];
NSFileManager *manager = [NSFileManager defaultManager];
if ([manager fileExistsAtPath:source])
[manager copyPath:source toPath:destination handler:nil];
@end