• 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: Ink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ink


  • Subject: Re: Ink
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 26 Jan 2006 17:20:18 -0600

Raleigh,

Thank you very much for your very detailed description!

Currently, I allow users of my app to write their answers to math problems. It really works well!

I will definitely file a few enhancement requests about adding a Cocoa wrapper. I would really like to see something like this:

- (void)inkText:(NSString*)text;
- (void)inkGesture:(int)gesture;

That's basically what I added as wrappers around handling the Ink carbon events.

One problem I initially had though was when I would write my number such that digits were spaced a bit apart (beyond the tolerance as set by the system prefs), each digit would produce a separate event. To solve this, I just enqueue recognized text into a buffer (NSString) and only dispatch that string after a certain delay. Basically, if I get multiple Ink events that are very close together, I coalesce them into a single string.

Do you think that coalescing should also be handled by the Cocoa APIs? I'm thinking that it would be best to just get a single NSString back. Apple could just inject spaces in between the individual recognized strings. One could then just filter out the spaces if need be (basically what I'd do in my case).


One final thing I thought I'd share is that because I only accept digits as input, I convert '\', '/', '|' and 'l' to ones and captial/ lower-case 'O' to zeroes. This greatly helps the accuracy of the input.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Ink
      • From: Raleigh Ledet <email@hidden>
References: 
 >(no subject) (From: Raleigh Ledet <email@hidden>)

  • Prev by Date: Re: NSCursor Resize Cursor
  • Next by Date: Re: NSCursor Resize Cursor
  • Previous by thread: (no subject)
  • Next by thread: Re: Ink
  • Index(es):
    • Date
    • Thread