Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-25 Thread Michael Ash
On Sun, Jan 25, 2009 at 12:47 PM, David Hoerl wrote: > Thanks to those who have posted on this, and suggested workarounds. However, > in a simple non-threaded app, this call should work, no? And perhaps the 0 > time timer would also suffer the same fate. Well as I said, the documentation says tha

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-25 Thread David Hoerl
Thanks to those who have posted on this, and suggested workarounds. However, in a simple non-threaded app, this call should work, no? And perhaps the 0 time timer would also suffer the same fate. The project has a checkbox so the user can enable the CFWakeup. To convince myself this was not ca

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 11:07 PM, Adam R. Maxwell wrote: > > On Jan 24, 2009, at 10:18 PM, Michael Ash wrote: > >> On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: >> > [...] > >>> The current app is single threaded. >>> >>> Can anyone shed any light on why the CFRunLoopWakeUp() call is necess

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Adam R. Maxwell
On Jan 24, 2009, at 10:18 PM, Michael Ash wrote: On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: [...] The current app is single threaded. Can anyone shed any light on why the CFRunLoopWakeUp() call is necessary? Is there some other issue I'm missing? Look at the big master list

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Michael Ash
On Sat, Jan 24, 2009 at 3:42 PM, David Hoerl wrote: > I have a few hundred tasks to handle, and am using NSRunLoop's > performSelector to get the scheduled: > > -(void)nextTask:(SEL)sel > { > [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil > order:0 >modes:[NS

Re: NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread Stephen J. Butler
On Sat, Jan 24, 2009 at 2:42 PM, David Hoerl wrote: > I have a few hundred tasks to handle, and am using NSRunLoop's > performSelector to get the scheduled: > > -(void)nextTask:(SEL)sel > { > [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil > order:0 >modes:[NS

NSRunloop performSelector needs CFRunLoopWakeUp ?

2009-01-24 Thread David Hoerl
I have a few hundred tasks to handle, and am using NSRunLoop's performSelector to get the scheduled: -(void)nextTask:(SEL)sel { [[NSRunLoop mainRunLoop] performSelector:sel target:self argument:nil order:0 modes:[NSArray arrayWithObject:NSDefaultRunLoopMode]]; CFRunLoopRef crf =