title: Cocoa question - NSTask isn't working
body: <p>NSTask isn't working; I think it has to do with the arguments. Here is my code:</p>
  
  <pre><code> - (IBAction)downloadFile:(id)sender {
  
      // allocate our stuff :D
      progressIndication = [[NSProgressIndicator alloc] init];
      NSTask *downloader = [[NSTask alloc] init];
  
      // set up the downloader task
      [downloader setLaunchPath:@"/usr/bin/curl"];
      [downloader setArguments:[NSArray arrayWithObject:[NSString stringWithFormat:@"-LO %@", downloadURL]]];
  
      // go to the Desktop!
      system("cd ~/Desktop");
  
      // start progress indicator
      [progressIndication startAnimation:self];
  
      // download!
      [downloader launch];
  
      // stop the progress indicator, everything is done! :D
      [progressIndication stopAnimation:self];
  
  
  
  }
  </code></pre>
  
  <p>Thanks</p>