Default button in a sheet
Default button in a sheet
- Subject: Default button in a sheet
- From: "Mathieu Routhier" <email@hidden>
- Date: Thu, 31 Jan 2002 16:30:26 -0500
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?
Mathieu Routhier