FROM : Uli Kusterer
DATE : Thu May 15 20:51:27 2008
Am 15.05.2008 um 20:42 schrieb ben syverson:
> Actually, I'm able to spawn new threads perfectly well. The problem
> is that I can't (?) use performSelectorOnMainThread: because I'm not
> an NSApplication, and so I don't get the default "main" thread that
> loops for user input...
Check out NSRunLoop. I think if you create one of those at startup
and run it, that will become your main loop and will take care of
performSelectorOnMainThread: and the likes.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
DATE : Thu May 15 20:51:27 2008
Am 15.05.2008 um 20:42 schrieb ben syverson:
> Actually, I'm able to spawn new threads perfectly well. The problem
> is that I can't (?) use performSelectorOnMainThread: because I'm not
> an NSApplication, and so I don't get the default "main" thread that
> loops for user input...
Check out NSRunLoop. I think if you create one of those at startup
and run it, that will become your main loop and will take care of
performSelectorOnMainThread: and the likes.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de






Cocoa mail archive

