Re: Question Mark Cursor
Re: Question Mark Cursor
- Subject: Re: Question Mark Cursor
- From: Mike Wright <email@hidden>
- Date: Fri, 19 Oct 2007 20:09:29 -0400
On Oct 19, 2007, at 6:02 PM, Uli Kusterer wrote:
Am 19.10.2007 um 23:46 schrieb Chris Williams:
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.
There is no "insert" key on the Mac keyboard. That key is labeled
"Help" on a Mac keyboard. I'm not sure it'd be a good idea to re-
label the help key as insert as that'll only help those few people
who bought a Mac mini and attached a PC keyboard to it.
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 vaguely remember that it's a special help mode that lets you
click on objects to bring up additional help, but I haven't yet found
an app that actually does anything in response to these "help clicks".
I think most apps that show help are probably Carbon apps. Showing
Apple Guide content (and later Apple HTML Help) was the default
behaviour for the Help key on OS 9.
AHIG: Pressing the Help key may invoke the application’s help in Help
Viewer. The key combination Command-Shift-/ (sometimes shortened to
Command-?) should always display the application’s help in Help Viewer.
NSHelpManager: NSContextHelpModeDidActivateNotification - Posted when
the application enters context-sensitive help mode. This typically
happens when the user holds down the Help key. The notification
object is the help mananer(sic). This notification does not contain a
userInfo dictionary.
So, you can register for the notification and bring up help when you
receive it. I've just added that to my app. I like it, because, deep
down inside, I've always resented having to hold down the shift key
to get help. Now I don't even have to hold down the command key. (In
fact, with the help of QuicKeys, I can now use the Help key in place
of command-shift-/ in all of my apps--even in Mail and XCode, and in
QuicKeys, itself. Wish I'd thought of it years ago.)
Regards,
Mike Wright
http://www.raccoonbend.com/
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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