Re: set NSRunAlertPanel to be the frontmost window
Re: set NSRunAlertPanel to be the frontmost window
- Subject: Re: set NSRunAlertPanel to be the frontmost window
- From: Chris Saldanha <email@hidden>
- Date: Wed, 07 May 2003 9:27:11 -0500
- Organization: Parliant Corporation
[demime could not interpret encoding binary - treating as plain text]
Hi,
You can simply force your application to the front, if that's suitable to
the kind of error you're showing. Look at NSApplication's -isActive and
-activateIgnoringOtherApps: methods.
Another thing you might do is trigger the application's icon in the dock
to start bouncing (which many apps do), to indicate to the user that an
alert panel has come up. Not sure how to trigger that... If your error
is not too critical, then this may be a better way to go.
Chris
--
Chris Saldanha
Parliant Corporation
==============Original message text===============
On Tue, 6 May 2003 15:22:54 -0700 Charles Bennion wrote:
I have created a Status Bar to launch applications from that works
fine. I have a problem though. I am calling on NSRunAlertPanel but I
can't find any documentation on how to set this to be the front most
window. It displays the alert panel fine except if you have a different
application that you are currently using and choose the status Bar item
to launch another application the alert panel stays behind the current
application you are using.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.