• 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
Re: NSURLRequest : Unable to Quit App after Syn call to Server.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLRequest : Unable to Quit App after Syn call to Server.


  • Subject: Re: NSURLRequest : Unable to Quit App after Syn call to Server.
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 15 May 2008 17:56:09 -0700


On 15 May '08, at 2:21 PM, email@hidden wrote:

The Cocoa code below "works". I get data back from the server. However, I'm unable to QUIT this application after this particular routine passes through. I checked the Activity Monitor and can see a bunch of threads still in session:

That's expected, and not a problem. CFNetwork uses a background thread to perform its I/O.


[NSApp stop:self]; // <-------- Does not work when above routine was performed.

That's your problem. You should call [NSApp terminate: self] instead. Although you shouldn't even need that — the standard Quit menu command is already bound to that action.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >NSURLRequest : Unable to Quit App after Syn call to Server. (From: email@hidden)

  • Prev by Date: Re: Maximize/Minimize other applications
  • Next by Date: Re: [MODERATOR] Re: iPhone: Question about keyboard / drawing
  • Previous by thread: NSURLRequest : Unable to Quit App after Syn call to Server.
  • Next by thread: Re: NSURLRequest : Unable to Quit App after Syn call to Server.
  • Index(es):
    • Date
    • Thread