• 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 is not accepting returns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Default" button is not accepting returns


  • Subject: Re: "Default" button is not accepting returns
  • From: John Stiles <email@hidden>
  • Date: Tue, 9 Sep 2003 09:32:36 -0700

Thanks to the help of some list readers, I found that I could fix my dialog by making sure that the OK button was the first responder! (There was an NSTextView eating all of the returns.)

This fixed the behavior, but the appearance still has a glitch--if I resize the sheet, the OK button stops pulsing. If I click in the button but release outside of it (IOW, highlight the button without actually saying OK), it fixes itself.

Actually... this looks like an OS X bug. Check this out--open the Mail.app preferences window, click Signatures, and then click Add Signature. It demonstrates the same behavior--as soon as you drag the window to resize it, the OK button stops pulsing.

Should I file this in Radar?


On Monday, September 8, 2003, at 04:03 PM, John Stiles wrote:

I have an app that uses one main window and a few sheets. (I stuck everything into one nib because it was convenient to do so, and there isn't so much stuff that anyone would complain about loading delays or anything... I don't know if that is related to my bug or not, but I mention it in case this helps anyone identify the problem.)

Anyway, when one of my sheets appears, it has a glowing blue OK button, because I set its key-equivalent to Return (\r). However, the Return key doesn't activate the button. What's weirder still--if I resize the sheet, the OK button stops glowing and just becomes a solid blue color.

I have another sheet in the nib where the Return key works fine and the glowing stays normal, and I can't really see an obvious difference between the two cases.

I must be doing something goofy, but I don't know what. What might cause this behavior?
_______________________________________________
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.
_______________________________________________
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.

References: 
 >"Default" button is not accepting returns (From: John Stiles <email@hidden>)

  • Prev by Date: Remount volumes
  • Next by Date: Re: anything for cocoa other than java or obj-c?
  • Previous by thread: "Default" button is not accepting returns
  • Next by thread: benefits of introspection and loose typing
  • Index(es):
    • Date
    • Thread