I am writing a custom NSMenuItem
view. I would like to be able to use the system default "on state" menu item image (the image named NSImageNameMenuOnStateTemplate
) within an NSImageView
subview of my custom NSMenuItem
view.
The checkmark image looks fine when the menu item is not selected. When selected, I need to somehow draw the image in white instead of the normal dark gray color. Otherwise, the dark gray checkmark is barely visible against the dark blue selected menu item background:
How do I draw the white checkmark image?