• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with text input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with text input


  • Subject: Re: Help with text input
  • From: Bill Appleton <email@hidden>
  • Date: Fri, 30 Apr 2010 09:08:03 -0700

hi all,

don't i need to use interpretKeyEvents to gather the key events until
insertText is called?

wow there is very little information on that....


thx
bill



On Fri, Apr 30, 2010 at 8:55 AM, Shawn Erickson <email@hidden> wrote:

> On Fri, Apr 30, 2010 at 8:48 AM, Bill Appleton
> <email@hidden> wrote:
> > 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?
>
> You can look at the modifier flags and/or detect the unicode code
> space being used.
>
> With that said if you are trying to process text input into text
> fields using NSEvents you really should reconsider if at all possible.
> You will miss out on the text input capabilities that Cocoa provides
> to you for free when you use standard AppKit controls or higher level
> text input constructs.
>
> -Shawn
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Help with text input
      • From: Charles Srstka <email@hidden>
References: 
 >Help with text input (From: Bill Appleton <email@hidden>)
 >Re: Help with text input (From: Jens Alfke <email@hidden>)
 >Re: Help with text input (From: Charles Srstka <email@hidden>)
 >Re: Help with text input (From: Douglas Davidson <email@hidden>)
 >Re: Help with text input (From: Bill Appleton <email@hidden>)
 >Re: Help with text input (From: Shawn Erickson <email@hidden>)
 >Re: Help with text input (From: Bill Appleton <email@hidden>)
 >Re: Help with text input (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Loading PersistentDocuments into the same window
  • Next by Date: Re: Help with text input
  • Previous by thread: Re: Help with text input
  • Next by thread: Re: Help with text input
  • Index(es):
    • Date
    • Thread