• 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: Default button in a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: reading in text files
  • Next by Date: RE: optimizing compilers
  • Previous by thread: Re: reading in text files
  • Next by thread: RE: optimizing compilers
  • Index(es):
    • Date
    • Thread