Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
  2.         NSString *documentsDirectory = [paths objectAtIndex:0];
  3.         NSString *fileInDoc = [documentsDirectory stringByAppendingPathComponent:@"Preferences"];
  4.        
  5.         server = [[FtpServer alloc] initWithPort:8045 withDir:fileInDoc notifyObject:self];