Re: Making the correct button the default button?
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.