Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6528703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:33:33+00:00 2026-05-25T09:33:33+00:00

I need to implement file transfer in my application and it seems that in

  • 0

I need to implement file transfer in my application and it seems that in Cocoa ConnectionKit is unofficial standard. I was able to compile it but I have struggled finding any documentation or examples of it’s use. The only example I found was outdated and even with modification I could not get it to work. Does anyone know the basic functions (creating connections, uploading…).

Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:33:34+00:00Added an answer on May 25, 2026 at 9:33 am

    Its pretty simple once you figure out how its laid out.

    Heres the code to create an ftp connection

    CKConnectionRequest *request = [CKConnectionRequest requestWithURL:url];
    CKFTPConnection *ftpConn = [[CKFTPConnection alloc] initWithRequest:request];
    [ftpConn setDelegate:self];
    [ftpConn connect];
    self.connection = ftpConn;
    [ftpConn release];
    

    Then you would interact with the Connection Delegate methods found in CKConnectionProtocol.h
    To authenticate to the server above you would use this delegate method where “cred” is an instance of NSURLCredential you have set up with the credentials you need.

    - (void)connection:(id <CKConnection>)connection 
    didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {
        [[challenge sender] useCredential:cred forAuthenticationChallenge:challenge];
    }
    

    For an upload you would just call one of the upload methods specified in CKConnectionProtocol.h inside of a delegate method like below

    - (void)connection:(id <CKConnection>)con
    didOpenAtPath:(NSString *)dirPath error:(NSError *)error {
       CKTransferRecord *tr = [con uploadLocalItem:localPath
                                 toRemoteDirectory:remotePath
                                 ignoreHiddenItems:YES];
    }
    

    Then you would receive callbacks as to the status of that upload via the Uploading Methods specified in CKConnectionProtocol.h

    Hopefully that helps. Forgive any small errors in the code I typed it out not copy/paste

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Cocoa app that will need access to multiple file transfer protocols,
I have an ASP.NET MVC 3 application. I need to implement a file uploader
Hi I need implement context help inside my .NET application. I have .chm file
I need to implement an OS file chooser with php but I don't know
I need to implement a flash-based file-uploader, that will allow me to upload multiple
I need to implement a simple logging mechanism for my web application. I have
I need to implement jquery blockUI for my application.. I have this code.. $.blockUI({
I need to implement ZXING QR code scanner in my application. I have complete
I need to implement a Peer To Peer File Transfer. What protocol should I
We need to implement a simple state machine in C . Is a standard

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.