• 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: Changing button highlights with Alert dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing button highlights with Alert dialogs


  • Subject: Re: Changing button highlights with Alert dialogs
  • From: "Laurent Daudelin" <email@hidden>
  • Date: Mon, 09 Feb 2004 11:51:10 -0500

On 09/02/04 11:25, "Chad Armstrong" <email@hidden> wrote:

> Is there a way to change which button is highlighted (or make none of
> them to be highlighted) when running an alert dialog with
> NSRunAlertPanel()? I tried to find a document, but didn't find
> anything. The book Cocoa Programming (Anguish/Buck/Yacktman) said that
> there is documentation at
> http://developer.apple.com/documentation/Cocoa/Reference/
> ApplicationKit/ObjC_classic/index.html, however, NSRunAlertPanel is not
> there (although it looks like it could).
>

Yes, the first button you provide to NSRunAlertPanel() will be the default
button. It will always be the rightmost button. Check the arguments that
NSRunAlertPanel() takes.

-Laurent.
--
========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************ Usual disclaimers apply ***********************
_______________________________________________
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: 
 >Changing button highlights with Alert dialogs (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Need help moving an NSSlider
  • Next by Date: Re: How do I soft-wrap text at a specific line length?
  • Previous by thread: Changing button highlights with Alert dialogs
  • Next by thread: Tabs window autoresizing.
  • Index(es):
    • Date
    • Thread