• 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
Problems with CurlHandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with CurlHandle


  • Subject: Problems with CurlHandle
  • From: "Ben D. Jones" <email@hidden>
  • Date: Sat, 21 May 2005 20:22:07 -0400

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
http://www.apricle.net


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problems with CurlHandle
      • From: p3consulting <email@hidden>
  • Prev by Date: Re: What does "NS" means ?
  • Next by Date: Re: NSDistributedObjects & Fast User Switching
  • Previous by thread: Re: User Authentication
  • Next by thread: Re: Problems with CurlHandle
  • Index(es):
    • Date
    • Thread