Re: initWithRequest:delegate:startImmediately
Re: initWithRequest:delegate:startImmediately
- Subject: Re: initWithRequest:delegate:startImmediately
- From: "Raglan T. Tiger" <email@hidden>
- Date: Mon, 24 Oct 2016 11:36:47 -0600
Holy connection batman ... just put
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
in the info.plst.
Sorry for the noise ... but it is Monday morning.
-rags
> On Oct 24, 2016, at 11:09 AM, Raglan T. Tiger <email@hidden> wrote:
>
>
> NSURLRequest initWithRequest:delegate:startImmediately has been deprecated and I am not sure what to use in its place.
>
> Building with xc 6.2 and sdk 9 with a deploy target of 10.5 all is well, even running on Sierra.
>
> Building with xc 7.3.1 and sdk 10.11 this code:
>
> NSURLConnection* connection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
>
> fails immediateley calling it delegate method connection:didFailWithError: with error -1022
>
> running on El Capitan or Sierra.
>
> What is going on or what don't I understand.
>
>
> Or, should I move to NSURLSession ... I haven't found yet if NSURlSession will deploy on 10.5
>
> Any help is sorely needed.
>
>
>
> -rags
>
>
>
> _______________________________________________
>
> 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