Objective c- how to detect make a NSTableView detect cmdkey down when editing a cell?

Joined
Mar 12, 2011
Messages
1
Reaction score
0
Points
1
Hey guys! I'm working on an aplication which has one button.Let's say Button A.
What i already did: when pressing 'a' on the keyboard i am able to simulate the corresponding button action. I also did this with Cmd+a keys.
What I want to do: I want to let the user select what shortcut key he wants to use for pressing button A.
To achieve this I made a nstableview with 2 columns,second collumn editable,representing the shortcut key. It works for simple key only(eg. 'a' or 'e' or something similar).
The question would be: How to detect,for example cmd key down on editing a table cell and display cmd sign in the table?

Thanks,
Andrei
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top