Any menu in Cocoa, whether in a menu bar, in a section, NSPopUpButton
or in a combo box, uses NSMenu
its menu to display. NSMenu
displays a list of NSMenuItem
s. Everyone NSMenuItem
has a method -[NSMenuItem setImage:]
. Have you tried this?
source
to share