Re: NSRunLoop run semantics
Re: NSRunLoop run semantics
- Subject: Re: NSRunLoop run semantics
- From: Bill Bumgarner <email@hidden>
- Date: Sun, 07 Sep 2008 19:30:16 -0700
On Sep 7, 2008, at 9:33 AM, Roman Kishchenko wrote:
Yet, in my thread example below, the 'run' invocation blocks and
does not
exit. MyThread is a simple NSThread subclass. No custom input
sources or
timers are registered with the run loop. Unless I misunderstand the
documentation or there are some 'hidden' input sources or timers are
registered with the run loop, I would expect 'run' to exist
immediately.
Would much appreciate help with sorting this out!
...
[loop run];
...
The documentation for -run says:
If you want the run loop to terminate, you shouldn't use this method.
Instead, use one of the other run methods and also check other
arbitrary conditions of your own, in a loop. A simple example would be:
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