Interface Builder Question?

Discussion in 'Mac Programming' started by menziep, Jan 11, 2007.

  1. macrumors 6502a

    Joined:
    Jan 21, 2006
    #1
    How can i set up my application to read and write ftp files, like you can a view site in WebView
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You can't do this in IB. You need to write an FTP client.
     
  3. thread starter macrumors 6502a

    Joined:
    Jan 21, 2006
    #3
    Thanks, is there anywhere i can get the code, for a simple ftp client.
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    I wrote my own FTP client code at one point. It's horrible. I'd do a Google search and see if anyones written any open source FTP objects.
     
  5. macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #5
    CURL is good. Released under the LGPL so you can use it in commercial products without opening the entire source. Its stable and powerful. I seem to remember seeing a cocoa wrapper for it somewhere. Maybe source forge.
     
  6. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #6
  7. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #7
    That looks like a pretty cool piece of code. The interface they expose is quite similar to the internal one I had for doing FTP (I was writing a tool to sync two directories). The issue I had was parsing the return of an ls command as different servers use different formats!
     
  8. macrumors member

    Joined:
    May 14, 2004
    #8
  9. Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #9
    Apparently Sandvox uses it.
     
  10. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #10
    I remembered that the FTP stuff I wrote was from an older iteration. I ended up using some code called FTPConnection. It used to be available here and was written by Greg Hulands. iirc I fixed a couple of minor bugs I had found.

    Once I get home I will post zip of that code as it worked pretty well and was small and easy to understand...

    Edit: actually I won't bother. He's one of the contributors to Connection Kit and FTPConnection is in there :D
     

Share This Page