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: Adam Thayer <email@hidden>
- Date: Mon, 26 Aug 2002 22:44:13 -0700
On 2002-08-26 22:33:41 -0700 Dan Wood <email@hidden> wrote:
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?
This is how I have done it, and it works (IMHO)...
I connected it my own "ok:" method like you have, and then made sure to set the 'equivilent' to Return under IB for the button. Make sure you use no modifier keys either. This will then produce the proper behavior from the button (in my cases that I have used it)
_______________________________________________
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.