Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting text selection?



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:
> http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
> 
> 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting text selection? (From: Dave DeLong <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.