• 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
Invoking 'a Paste' Programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invoking 'a Paste' Programmatically


  • Subject: Invoking 'a Paste' Programmatically
  • From: Joshua Brickner <email@hidden>
  • Date: Sun, 05 Oct 2008 21:42:34 -0600

Hi All,

I'm developing a Cocoa application which extends the functionality of the clipboard. I have global HotKey registered using Carbon, and this HotKey invokes a method in which I'm replacing the contents of the general Pasteboard. I want to take this one step further and have the method paste the new contents of the Pasteboard. Since this method is called when a global HotKey event is triggered it should paste into whatever field in whichever application is active.

I'm fairly new to Cocoa, but from what I can tell this is a pretty tall order. Please forgive my lack of proper terminology, but I'm wondering if there is a way to programmatically call 'Paste', or if there are any facilities in Cocoa for simulating key presses? Is there any chance of this idea working? Any suggestions for where I should look for an answer?

Kind Regards,
Joshua Brickner
_______________________________________________

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

  • Follow-Ups:
    • Re: Invoking 'a Paste' Programmatically
      • From: Peter Maurer <email@hidden>
    • Re: Invoking 'a Paste' Programmatically
      • From: "Colin Barrett" <email@hidden>
  • Prev by Date: Re: Master-Detail Interface Examples
  • Next by Date: About Launch Other Program
  • Previous by thread: Re: expanding core data model sheet
  • Next by thread: Re: Invoking 'a Paste' Programmatically
  • Index(es):
    • Date
    • Thread