Invoking 'a Paste' Programmatically
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