• 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: Why would sheet's default button not respond to return key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would sheet's default button not respond to return key?


  • Subject: Re: Why would sheet's default button not respond to return key?
  • From: Dan Wood <email@hidden>
  • Date: Mon, 26 Aug 2002 22:33:41 -0700

Yes, I meant dismiss the sheet.

Connecting the button to "performClose:" on the NSPanel rather than my "ok:" method (which invokes [NSApp endSheet:oWindow returnCode:0]) doesn't solve the problem, in fact, now clicking the button with the mouse no longer works. So I'm still stuck.

Any other ideas?


On Monday, August 26, 2002, at 09:11 PM, Dustin Voss wrote:

On Monday, August 26, 2002, at 12:33 PM, Dan Wood wrote:

I'm bringing up a sheet from my window, and that sheet has an "OK"
button with a key equivalent of the return key that is supposed to
dismiss the button. The button is throbbing blue, but the return key
doesn't activate the sheet.

I assume you mean the default button should dismiss the sheet, not activate the sheet.

Well, I have the same problem in the sheets that I make. I get around it by explicitly connecting that button to the performClose: method of the sheet, in IB. Note, connecting it the the first responder doesn't seem to do the trick.

--
Dustin
_______________________________________________
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.



--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/
_______________________________________________
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.

  • Follow-Ups:
    • Re: Why would sheet's default button not respond to return key?
      • From: Adam Thayer <email@hidden>
References: 
 >Re: Why would sheet's default button not respond to return key? (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: Decimal Rounding...
  • Next by Date: Re: Why would sheet's default button not respond to return key?
  • Previous by thread: Re: Why would sheet's default button not respond to return key?
  • Next by thread: Re: Why would sheet's default button not respond to return key?
  • Index(es):
    • Date
    • Thread