Re: Getting text selection?
Re: Getting text selection?
- Subject: Re: Getting text selection?
- From: Guy English <email@hidden>
- Date: Mon, 31 Jan 2005 11:42:28 -0500
See the Accessibility APIs - but the user will have to turn them on explicitly.
If you want a user to be able to perform an action in your app with
the selected text as the input see Services in the docs. Other that
that you may try polling with Apple Script or something. Or possibly
an InputManager in Cocoa apps. In general it's a pain because your app
really shouldn't be snooping on the user. Obviously there may be times
when the user wants you to do just that though.
Guy
On Sat, 29 Jan 2005 11:46:25 -0700, Dave DeLong <email@hidden> wrote:
> Hi everyone,
>
> How can I get the selected text from the frontmost application (not
> necessarily my app)?
>
> Thanks,
>
> Dave DeLong
>
> _______________________________________________
> 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
>
_______________________________________________
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