PDA

View Full Version : Interface Builder Question?




menziep
Jan 11, 2007, 03:28 PM
How can i set up my application to read and write ftp files, like you can a view site in WebView



robbieduncan
Jan 11, 2007, 03:33 PM
You can't do this in IB. You need to write an FTP client.

menziep
Jan 11, 2007, 03:56 PM
You can't do this in IB. You need to write an FTP client.

Thanks, is there anywhere i can get the code, for a simple ftp client.

robbieduncan
Jan 11, 2007, 03:58 PM
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.

MongoTheGeek
Jan 11, 2007, 09:10 PM
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.

caveman_uk
Jan 12, 2007, 02:31 AM
There 's an open source third party bit of code called the connection framework that does a ton of stuff - but it's hardly newbie territory

http://opensource.utr-software.com/connection/

robbieduncan
Jan 12, 2007, 03:45 AM
There 's an open source third party bit of code called the connection framework that does a ton of stuff - but it's hardly newbie territory

http://opensource.utr-software.com/connection/

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!

Grover
Jan 12, 2007, 04:33 AM
You may want to take a look at the OmniGroup's Omni Web Framework: http://www.omnigroup.com/developer/sourcecode/.

caveman_uk
Jan 12, 2007, 09:42 AM
That looks like a pretty cool piece of code.
Apparently Sandvox uses it.

robbieduncan
Jan 12, 2007, 10:01 AM
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 (http://www.dlsxtreme.com/software.php?appID=14) 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