Re: Why would sheet's default button not respond to return key?
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.