• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Whats Wrong?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Whats Wrong?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Changing the header size of a NSTableView
  • Next by Date: NSURL Tutorial?
  • Previous by thread: Re: Changing the header size of a NSTableView
  • Next by thread: Re: Whats Wrong?
  • Index(es):
    • Date
    • Thread