Re: Stopping a NSRunLoop
Re: Stopping a NSRunLoop
- Subject: Re: Stopping a NSRunLoop
- From: Mike Blaguszewski <email@hidden>
- Date: Tue, 23 May 2006 15:43:23 -0400
On May 23, 2006, at 3:22 PM, Andrei Tchijov wrote:
Do not bother with getCFRunLoop/CFRunLoopStop. It does not work.
Your own loop with terminal condition and runMode:beforeDate: the
only way to go (this is actually the way promoted in Apple doc
about Run Loop)
I've had some success starting a runloop with CFRunLoopRun(), then
using (I believe) CFRunLoopStop(CFRunLoopGetCurrent()) to end it.
This was in the main thread of a Foundation tool, though, where I
needed NSNotifications to work. And I don't have the code handy
anymore to verify the details.
--
Mike Blaguszewski / Ambrosia Software, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden