Re: Get *all* key events to display in NSTextField?
Re: Get *all* key events to display in NSTextField?
- Subject: Re: Get *all* key events to display in NSTextField?
- From: Dale Gillard <email@hidden>
- Date: Fri, 5 Mar 2004 19:17:19 +1100
From: Allan Odgaard <email@hidden>
Date: Thu, 4 Mar 2004 14:20:41 +0100
On 4. Mar 2004, at 13:19, Dale Gillard wrote:
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?
Actually, I don't think you'll get all keys with that approach either.
I eventually had to implement sendEvent: in an application subclass to
get all of the events -- so when my text field became first responder,
it would tell the app to send events directly to me, and I would
translate them to a glyph representation.
Thanks for this suggestion. I hadn't thought of subclassing NSApp. This
is probably a simpler approach than trying to turn a custom NSView into
a NSTextField, so I'll give it a go.
Cheers.
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.