Re: Event to trigger writeSelectionToPasteboard
Re: Event to trigger writeSelectionToPasteboard
- Subject: Re: Event to trigger writeSelectionToPasteboard
- From: Peter Watkins <email@hidden>
- Date: Tue, 4 Jan 2011 08:07:00 -0800
Hi Peter,
You can copy a selection using the Accessibility API:
> First get the UIElement for the application's "Copy" menu item.
> Then invoke "AXPress" on it.
> Drawback is that you will have to ask the user to enable Accessibility if
> it is not enabled.
>
> To get an idea about Accessibility, look at Apple's "Accessibility
> Inspector" app, which also contains a bunch of interesting code samples.
>
I'll take a look at the inspector.
Thanks,
Peter W
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden