• 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: Making the correct button the default button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making the correct button the default button?


  • Subject: Re: Making the correct button the default button?
  • From: Dustin Voss <email@hidden>
  • Date: Tue, 10 Feb 2004 17:03:57 -0800

On 10 Feb, 2004, at 10:10 AM, m wrote:

On Feb 10, 2004, at 2:36 AM, Phillip Hutchings wrote:

Not everything can be generalized; just one sentence will explain what
I mean...
"Do you really want to erase all your harddisks?" [ Cancel ][ OK ]

I would contend that this situation calls for no default button.

On Feb 10, 2004, at 2:15 AM, Andreas Mayer wrote:

I can't see what's wrong with _no_ default button in this case.

Ok guys, just to get this discussion focused back on solutions, note that NSRunAlertPanel() and its friends don't appear to allow your preferred solution (no default button is the default) either.

Panther introduces the NSAlert class. From the docs, it looks like the first button you add to an NSAlert will have a key equivalent of Return, but it also looks like you can get that button after adding it and remove the key equivalent with NSButton methods.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Making the correct button the default button?
      • From: m <email@hidden>
References: 
 >Re: Making the correct button the default button? (From: Jens Bauer <email@hidden>)
 >Re: Making the correct button the default button? (From: Phillip Hutchings <email@hidden>)
 >Re: Making the correct button the default button? (From: m <email@hidden>)

  • Prev by Date: Re: Simple File Data Reading Question
  • Next by Date: Re: Getting an NSString out of an NSTextView;
  • Previous by thread: Re: Making the correct button the default button?
  • Next by thread: Re: Making the correct button the default button?
  • Index(es):
    • Date
    • Thread