FROM : Jens Alfke
DATE : Fri May 16 02:56:09 2008
On 15 May '08, at 2:21 PM, <email_removed> 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
DATE : Fri May 16 02:56:09 2008
On 15 May '08, at 2:21 PM, <email_removed> 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
| Related mails | Author | Date |
|---|---|---|
| fclee | May 15, 23:21 | |
| Jens Alfke | May 16, 02:56 | |
| fclee | May 16, 15:32 | |
| stephen joseph but… | May 16, 16:53 | |
| Frederick C. Lee | May 17, 20:58 | |
| Dominik Pich | May 17, 21:23 |






Cocoa mail archive

