• 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: Text Capture in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Capture in Cocoa


  • Subject: Re: Text Capture in Cocoa
  • From: Yaogang Lian <email@hidden>
  • Date: Fri, 16 Jun 2006 15:16:03 -0400


On Jun 16, 2006, at 1:48 PM, John Stiles wrote:

Does the Dictionary plug-in work with images??
I'm not sure how you could handle rasterized images unless you implement an OCR solution :)



That's not what I meant. I mean, by using the accessibility APIs, I won't be able to
capture a text in a textView which also contains an image. The info returned by
accessibility APIs is not enough to reproduce the exact layout of the textView. It
basically returns the attributes and values of the UI element. For textView, it
returns the selected string or the whole text inside the view. If there is only text
inside the view, maybe I can calculate which word the mouse is over by
reproducing the layout. But if there is an image inside, the whole layout is
changed, and I don't know how to calculate the word under the mouse.


Yaogang
_______________________________________________
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


References: 
 >Re: Text Capture in Cocoa (From: Bill Cheeseman <email@hidden>)
 >Re: Text Capture in Cocoa (From: Yaogang Lian <email@hidden>)
 >Re: Text Capture in Cocoa (From: John Stiles <email@hidden>)

  • Prev by Date: Detecting and preventing launch of arbitary process
  • Next by Date: Re: Blocking loops
  • Previous by thread: Re: Text Capture in Cocoa
  • Next by thread: Text Capture in Cocoa
  • Index(es):
    • Date
    • Thread