3

Is it possible to control the inset or padding for NSMenuItems?

enter image description here

I.e. for a menu used in my NSPopupButton I'd like to remove the left padding (normally used for the checkbox) and add some padding after the text.

Can this be achieved (with public API)?

cacau
  • 3,606
  • 3
  • 21
  • 42

1 Answers1

-1

Subclass NSPopupButtonCell and override titleRectForBounds:.

Set the cell to the NSPopupButton -[NSPopupButton cell:]

lead_the_zeppelin
  • 2,017
  • 13
  • 23