Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can anyone provide me with a bit of code to ftp to a server

Can anyone provide me with a bit of code to ftp to a server
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2004
Status: Offline
Reply With Quote
Jul 19, 2004, 07:34 PM
 
Hello everyone i was wondering if it was possible to provide me with some code. (cocoa-objective-c)

What i want it to do is:

say there is a button with the title "upload" and 2 radio buttons
The raidio buttons have these effects. Upload whole hard drive or upload specific folder.

When the upload specific folder button is pressed then a browsing screen pops up and the person chooses a folder.

When the whole hard drive is pressed it will upload the whole hard drive when the upload is pressed but if the upload specific foler button is pressed it will upload the specfific folder.

I am NOT SAYING you have to take tthe time and write it out. I just need a link to it or something like it

Thanks in advanced,
greatly appreaciated,
Naintofaren
     
Senior User
Join Date: Aug 2002
Location: Oxford, England
Status: Offline
Reply With Quote
Jul 21, 2004, 12:21 PM
 
The simplest way to use FTP in cocoa apps without spending hours writing your own classes, is to use NSTask and curl (/usr/bin/curl). Look at the NSTask examples from apple, and the refer to the curl man page.
Luke
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Jul 21, 2004, 03:57 PM
 
My suggestion would be to use CURLHandle.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: ny, ny, ny
Status: Offline
Reply With Quote
Jul 21, 2004, 05:29 PM
 
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2