Hello,
(I also posted a similar topic on comp.lang.objective-c by mistake;
this group is more relevant)
I am ****ting a framework from OS 9 to OS X using carbon and need a show
a non-blocking alert. The framework uses no UI or events aside from the
alert (which originally polled the keyboard for any key-presses, but
that won't work in OS X) so I am having difficulty getting this to
work.
Sheets (via ShowSheetWindow) seem like a good approach for non-blocking
input from the user, but there is no main window to use as a parent. I
thought about using a StandardAlert in a separate thread, but Carbon
doesn't work so well with multiple threads. Also, I think I need to set
up an event system (I can't even get StandardAlert working properly on
the main thread) but don't know how to go about that for a framework.
In the end, I need a way to poll for user-input and I'm somewhat new to
mac programming. I realize that my approaches may be considered poor
design, but I just need something that works before I can start
rewriting the whole thing for cocoa.
Any ideas?
Thanks!
-CJ


|