Re: Command-. And sheets
Re: Command-. And sheets
- Subject: Re: Command-. And sheets
- From: Ricky Sharp <email@hidden>
- Date: Wed, 15 Mar 2006 16:36:11 -0600
On Mar 15, 2006, at 4:13 PM, Mark Alldritt wrote:
This feels like a FAQ, but nothing good turned up on Google.
I have a series of sheets in my app with Cancel buttons. The key
equiv on
this buttons is set to escape (\E). The documentation seems to
suggest that
Cocoa will respond to Escape or Command-., but in my application
Command-.
is being ignored.
Is there something special I need to do get this working?
I've tried defining the NSResponder cancelOperation: and cancel:
methods on
my controller, and setting the window's delegate, but that has no
observable
effect.
You should be getting Command-. for free. TextEdit works a-ok with
that key (I tried on the sheet you get when attempting to close a
dirty document).
You may want to look over the TextEdit source (/Developer/Examples/
AppKit/TextEdit) and see what things may be different in how sheets
are being handled.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden