• 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: Event to trigger writeSelectionToPasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Event to trigger writeSelectionToPasteboard (From: Peter Watkins <email@hidden>)
 >Re: Event to trigger writeSelectionToPasteboard (From: Graham Cox <email@hidden>)
 >Re: Event to trigger writeSelectionToPasteboard (From: Peter Lübke <email@hidden>)

  • Prev by Date: Re: Event to trigger writeSelectionToPasteboard
  • Next by Date: Re: Missing connection
  • Previous by thread: Re: Event to trigger writeSelectionToPasteboard
  • Next by thread: Re: Event to trigger writeSelectionToPasteboard
  • Index(es):
    • Date
    • Thread