Re: Text Capture in Cocoa
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