As described in HIG, I want to set the checkmark of a menutitem to diamond shape.
I cannot find in the documentation how to do it.
I have tried the following:
create a png image Diamond (with a capture of image of diamond char) and include in xcassets
individuMenuItem.onStateImage = NSImage(named: "Diamond")I effectively get a diamond, but it is overlapping menu text. And that seems an awkward solution to create a png ; I would prefer to call directly the correct char (155 ?)
I read some way on how to do this in objC, but cannot get it working as I do not find _NSGetThemeImage in Swift
NSImage* _NSGetThemeImage(int num);
[menuitem setState:NSOnState];
[menuitem setOnStateImage:_NSGetThemeImage(155)];