Re: Frameworks (ConnectionKit)
Re: Frameworks (ConnectionKit)
- Subject: Re: Frameworks (ConnectionKit)
- From: Amy Gibbs <email@hidden>
- Date: Tue, 09 Aug 2011 15:44:54 +0100
I'm certainly noy tied to FTP, and I'll have a go with
NSURLConnection. I did try to use that for another part but I just
couldn't get it to work. Is there a particular sample/tutorial you
could recommend?
In the following code, accessing the URL in a webView works, but the
NSURLConnection doesn't;
[code]
NSURL *uploadURL = [[NSURL alloc] initWithString:escapedUrl];
NSMutableURLRequest* post = [NSMutableURLRequest requestWithURL:
uploadURL];
//NSURLConnection *connect = [NSURLConnection initWithRequest:post
delegate:self startImmediately:@"YES"];
NSLog (@"uploadurl is: %@", uploadURL);
[[uploadWeb mainFrame] loadRequest:[NSURLRequest
requestWithURL:uploadURL]];
[/code]
On 9 Aug 2011, at 2:32PM, Mike Abdullah wrote:
My point is that you're not constrained to it.
ConnectionKit is almost certainly overkill for this. If you're
determined to use FTP, check out CFWriteStreamCreateWithFTPURL(). In
general, I'd advise a WebDAV-like system fed by NSURLConnection is
best.
On 9 Aug 2011, at 14:15, Amy Gibbs wrote:
It seemed the easiest way of uploading a file to the server?
Regards
Willow Tree Crafts
Www.willowtreecrafts.co.uk
On 9 Aug 2011, at 13:46, Mike Abdullah <email@hidden>
wrote:
Why have you picked FTP?
On 9 Aug 2011, at 12:04, Amy Heavey wrote:
Hi,
I'd like to be able to use my mac app to upload an image to a
server. From googling it seems the best way to achieve this is
using the ConnectionKit framework to upload it via FTP.
I've downloaded the framework, but I"m at a loss, the examples
included don't build, and looking at the hillegass book there
should be a .framework file for me to link to but I can't find
one. I also can't find any documentation about how to use this.
Can anyone point me in the right direction? Either for using
ConnectionKit or how else to simply ftp a file to a server?
Many Thanks
Amy Heavey
Willow Tree Crafts
www.willowtreecrafts.co.uk
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the
list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden