• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSRunAlertPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSRunAlertPanel (From: Miguel Nunes Correia <email@hidden>)

  • Prev by Date: Re: help with a tableView dataSource
  • Next by Date: Java Expert Question
  • Previous by thread: Re: NSRunAlertPanel
  • Next by thread: Cocoa Code For AIFF
  • Index(es):
    • Date
    • Thread