objective c - How to check if Option key is down when user clicks a NSButton -


i have few checkboxes along textfields on nspanel opens user parameters. option, i'd user able set/unset checkboxes on panel holding option key when press of checkboxes.

i'm not sure where/how check key board doing when user clicks button.

check [nsevent modifierflags]...

if ([nsevent modifierflags ] & nsalternatekeymask) {     //do } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -