objective c - Decoding integer and other masks in Cocoa -
cocoa has plethora of integer masks , codes. instance, nscommandkeymask or nsf1functionkey, defined , documented in headers.
however, can archaic , when accessing accessibility attributes, instance glyph (axmenuitemcmdglyph), you're given integer number 111, represents f1 (0xf704), or 112 represents f2 (hex: 0xf705).
is there easy way deal masks , codes? perhaps 1 that's able convert 111 corresponding hex unicode 0xf704? mean nsevent.h maps nsf1functionkey 0xf704, there mapping 111 nsf1functionkey or 0xf704?
if want unicode character menu item's key equivalent, rather glyph it, try getting the kaxmenuitemcmdcharattribute
attribute instead of kaxmenuitemcmdglyphattribute
.
Comments
Post a Comment