How to get the last key pressed on Mac ?
Posted
by Dheeraj
on Stack Overflow
See other posts from Stack Overflow
or by Dheeraj
Published on 2010-06-16T05:51:49Z
Indexed on
2010/06/16
6:02 UTC
Read the original article
Hit count: 336
Hi All,
I'm writing a plugin for an application. I cannot derive from NSApplication as it is a third party application. I can get the callback in my plugin when any key is pressed. But I will not know what key is pressed. So is there any call in Cocoa to find the last key pressed when I get the callback? I only have NSView object.
Any ideas will help me a lot.
Thanks,
Dheeraj.
© Stack Overflow or respective owner