Re: Help with text input
Re: Help with text input
- Subject: Re: Help with text input
- From: Charles Srstka <email@hidden>
- Date: Fri, 30 Apr 2010 11:07:57 -0500
On Apr 30, 2010, at 10:48 AM, Bill Appleton wrote:
> one issue is that the old carbon kEventTextInputUnicodeForKeyEvent delivered
> typed characters that should be inserted into (say) of text field
>
> the new [event characters] method delivers ALL keys -- so for example, an
> arrow key gets a unicode equivalent & now that is also getting typed
>
> does anyone know how to filter between characters that should be typed &
> other stuff?
Yes, implement NSTextInputClient. Characters to be typed will come in via the insertText:replacementRange: method.
Charles
_______________________________________________
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