• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
initWithRequest:delegate:startImmediately
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

initWithRequest:delegate:startImmediately


  • Subject: initWithRequest:delegate:startImmediately
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Mon, 24 Oct 2016 11:09:50 -0600

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


  • Follow-Ups:
    • Re: initWithRequest:delegate:startImmediately
      • From: "Raglan T. Tiger" <email@hidden>
  • Prev by Date: Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/
  • Next by Date: Re: initWithRequest:delegate:startImmediately
  • Previous by thread: Re: EXC_BAD_INSTRUCTION when enumerating /.DocumentRevisions-V100/
  • Next by thread: Re: initWithRequest:delegate:startImmediately
  • Index(es):
    • Date
    • Thread