Re: Frameworks (ConnectionKit)
Re: Frameworks (ConnectionKit)
- Subject: Re: Frameworks (ConnectionKit)
- From: Thomas Wetmore <email@hidden>
- Date: Tue, 09 Aug 2011 11:21:18 -0400
The startImmediately parameter is a BOOL, not a string. Use YES instead of @"YES" and see if that helps.
Tom W.
On Aug 9, 2011, at 10:44 AM, Amy Gibbs wrote:
> 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]
_______________________________________________
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