Re: Default button in a sheet
Re: Default button in a sheet
- Subject: Re: Default button in a sheet
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 1 Feb 2002 13:32:53 +0100
On Thursday, January 31, 2002, at 10:30 PM, Mathieu Routhier wrote:
Hi,
I am using a sheet to let user perform some tasks. I would like the OK
button to be the default button, i.e. I want it to blink to let the user
know that pressing Return will commit and close the sheet.
I've tried setting a key equivalent to my button in IB. The button
turns blue and when I test the interface, it behaves well. But in my
application, when I show it as a sheet, it does not blink until I click
in the window.
I've tried makeKeyWindow and makeKeyandOrderFront with no success.
I've also tried using NSWindow - setDefaultButtonCell: but with the same
results.
What's wrong?
Never seen this issue with a sheet.
But it's a well known and old bug that the default button is not pulsing
in Dialog Windows unless you click on them.
The day it's fixed, I'll drink Champagne.