Get *all* key events to display in NSTextField?
Get *all* key events to display in NSTextField?
- Subject: Get *all* key events to display in NSTextField?
- From: Dale Gillard <email@hidden>
- Date: Thu, 4 Mar 2004 23:19:30 +1100
I'd like to provide a preference to my users so they can configure
hotkeys for various functions.
I've searched the archives and Googled, but can't find anything that
provides a solution or advice for doing this. I've read messages from
Douglas Davidson suggesting not to subclass NSTextField or NSTextView
(for good reasons). So I subclassed NSFormatter but found its limited
too, just like NSTextField or NSTextView, and cannot receive certain
key events (eg Command+1, F4, etc).
Is the only solution to create a custom NSView, draw the outline and
focus ring, and override keyDown: to capture the full range of key
events available?
Thanks
Dale
_______________________________________________
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.