Re: NSRunLoop run semantics

2008-09-09 Thread Roman Kishchenko
Chris, Bill, thanks for your replies. My question was more about seeming contradiction between method description (if no input sources or timers are attached to the run loop, this method exits immediately) and behavior I observed (nothing is attached to the loop by my application, yet, it does

Re: NSRunLoop run semantics

2008-09-09 Thread Chris Kane
On Sep 9, 2008, at 17:59, Roman Kishchenko wrote: Chris, Bill, thanks for your replies. My question was more about seeming contradiction between method description (if no input sources or timers are attached to the run loop, this method exits immediately) and behavior I observed (nothing

NSRunLoop run semantics

2008-09-07 Thread Roman Kishchenko
Hi, I am new to Cocoa and have been experimenting with NSRunLoop. I would appreciate clarification about 'run' method semantics. The documentation states that: If no input sources or timers are attached to the run loop, this method exits immediately Yet, in my thread example below, the 'run'

Re: NSRunLoop run semantics

2008-09-07 Thread Bill Bumgarner
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