Re: Keyboard short-cuts edit field
Re: Keyboard short-cuts edit field
- Subject: Re: Keyboard short-cuts edit field
- From: Uli Kusterer <email@hidden>
- Date: Wed, 3 May 2006 22:27:36 +0200
Am 03.05.2006 um 19:08 schrieb Eric Long:
I see in the Keyboard & Mouse prefs in the System Preferences there
is a
Keyboard Shortcuts tab that supports a kind of text cell designed for
specifying a keyboard shortcut. It captures input and displays
appropriate
symbols for modifiers and such. This same type of field exists in
Xcode for
setting key bindings. I like the way this is done, but the
specialized edit
field control is not exposed in Cocoa, so far as I can tell.
I want to implement this same functionality as a custom subclass of
NSTextField. I'm not sure what the best way to go about doing this is.
Search the list archives. The guys at Rogue Amoeba have made some
very nice source code for this available, and I've posted links to
the various places they had it several times in the past. I don't
think it's an NSTextField subclass, but it gets the job done.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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