Re: Help with text input
Re: Help with text input
- Subject: Re: Help with text input
- From: Bill Appleton <email@hidden>
- Date: Fri, 30 Apr 2010 08:48:39 -0700
hi all,
this is great, thanks for the help.
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?
thanks,
bill
On Fri, Apr 30, 2010 at 8:14 AM, Shawn Erickson <email@hidden> wrote:
> On Fri, Apr 30, 2010 at 7:12 AM, Bill Appleton
> <email@hidden> wrote:
> > hi all,
> >
> > thanks for the help
> >
> > the characters message gives me the unicode output, that is working fine
> >
> > but i am unsure how to detect raw keys, like arrow keys, function keys,
> etc
>
> Take a look in NSEvent.h for various helpful constants or near the
> bottom in the API docs [1]. For example NSUpArrowFunctionKey
> (matchable against what you get back from -[NSEvent characters]).
>
> -Shawn
>
> [1]
> http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-17420
>
_______________________________________________
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