Re: Question Mark Cursor
Re: Question Mark Cursor
- Subject: Re: Question Mark Cursor
- From: Ricky Sharp <email@hidden>
- Date: Fri, 19 Oct 2007 17:11:12 -0500
On Oct 19, 2007, at 4:46 PM, Chris Williams wrote:
Maybe not directly Cocoa, but the best place I can think of to
inquire.
I have an app with my own view. I handle all the keyboard input on
this
view, of course. I want to be able to use the dedicated insert/
delete keys
(above the arrows) for some things in my application. Delete is
working
fine. But when I press insert, I get a question mark cursor and
nothing in
my application.
A) What does this cursor mean? I see that in some applications it
does that
(turns into a ? and does seemingly nothing), and in others it
brings up
help.
I believe that's a hold-over from the NeXT days. Something to do
with contextual help. I believe the process was once the cursor
became '?', you could then click on something to help for that
specific thing.
B) How can I override this behavior to get the keystroke in my view?
I've found no method to suppress the display of that cursor.
However, I'm still able to process that key along with the standard
Command-? to invoke my help system.
And, when you say 'insert', I'm going to assume that on your
keyboard, the key physically above the 'forward delete' key is
'insert'? On my US keyboard, that key says 'help'.
Having said all that, my custom NSButton class provides a
performKeyEquivalent: override. There, I look for Command-? or
NSHelpFunctionKey. You could do the same in your view, assuming of
course your view can become the first responder.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden