Re: Invoking 'a Paste' Programmatically

2008-10-11 Thread Peter Maurer
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'm wondering if there is a way to programmatically call 'Paste', or if there are any facilities in Cocoa for simulating key presses? Actuall

Re: Invoking 'a Paste' Programmatically

2008-10-06 Thread Colin Barrett
On Sun, Oct 5, 2008 at 8:42 PM, Joshua Brickner <[EMAIL PROTECTED]> wrote: > I'm wondering if there is a way to programmatically call 'Paste' If you're running in the process of the foreground app, you could do something along the lines of: [[[NSApp mainWindow] firstResponder] paste:nil]; You co

Invoking 'a Paste' Programmatically

2008-10-06 Thread Joshua Brickner
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 pas