Re: NSRunAlertPanel
Re: NSRunAlertPanel
- Subject: Re: NSRunAlertPanel
- From: j o a r <email@hidden>
- Date: Sun, 14 Sep 2003 17:58:28 +0200
The "NSRun..." methods are convenience methods. Use the "NSGet..."
methods instead, to get hold of the alert panel instance. Follow up
with a "runModalSession" and the necessary methods to change the window
level on that returned panel.
Look at the documentation on these methods in the AppKit Functions
reference document, and the NSWindow reference document.
Also think about if you really should do this. Few things are so
annoying as when you're in the middle of doing something in some
application, when an alert pops up from some other application
interrupting your work. Why not just bounce the icon in the dock? That
should suffice.
j o a r
On 2003-sep-14, at 17:12, Miguel Nunes Correia wrote:
i've got something like this:
if (NSRunCriticalAlertPanel(txt, @"", @"Ok", @"Cancel", NULL) ==
NSOKButton) {
... }
What do i need to change here to change its level?
_______________________________________________
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.