Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > non-blocking al...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 921 of 1025
Post > Topic >>

non-blocking alert from a framework?

by "CJ" <siegebell@[EMAIL PROTECTED] > Jan 9, 2007 at 02:56 PM

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
 




 2 Posts in Topic:
non-blocking alert from a framework?
"CJ" <siegeb  2007-01-09 14:56:19 
Re: non-blocking alert from a framework?
Ben Artin <macdev@[EMA  2007-01-09 18:14:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 1:30:47 CDT 2008.