Found this example in the archives: - (IBAction)sendFile:(id)sender { // NSString *error; [self uploadOneFile:fileToAddToQue toHost:@"apricle.org" withUserName:@"apricle" andPassword:@"De3Fr4Gt5" andDirectoryOnHost:@"/www/"]; }
-(NSString *)uploadOneFile: (NSString *)inFilePath // @"/User/me/File" toHost:(NSString *)inHost // @"ftp.apricle.org" withUserName:(NSString *)inUsername // @"user" andPassword:(NSString *)inPassword // @"dukeflop" andDirectoryOnHost:(NSString *)inDirectory // @"/remote/mov/" { NSString *urlString = [NSString stringWithFormat: @"ftp://%@:%@@%@/%@/%@", inUsername, inPassword, inHost, inDirectory, [inFilePath lastPathComponent]]; NSURL *url = "" URLWithString:urlString]; CURLHandle *urlHandle = (CURLHandle *)[url URLHandleUsingCache:NO];
[progressBar setIndeterminate:NO]; [progressBar setDoubleValue:0.00]; // [urlHandle setProgressIndicator:progressBar]; [urlHandle setPutFile:inFilePath]; [urlHandle prepareAndPerformCurl]; return @"Error checking not implemented"; }
No matter what I try and change... i get this error for either [urlHandle setPutFile:inFilePath] or [urlHandle setProgressIndicator:progressBar].
[Session started at 2005-05-21 20:18:50 -0400.] 2005-05-21 20:18:58.171 FXCurlTests[852] *** -[NSFTPURLHandle setPutFile:]: selector not recognized [self = 0x3b41b0] 2005-05-21 20:18:58.190 FXCurlTests[852] *** -[NSFTPURLHandle setPutFile:]: selector not recognized [self = 0x3b41b0]
Any advice on why this happens? This also happens in the very adapted code I'm using in my actual application, I made this up quick to test and see if the problem was from the Framework.
Ben D. Jones Apricle Technologies
|