Mikuro
Crotchety UI Nitpicker
I'm trying to make a popup menu in the same style the Finder uses in its Find/Smart Folder window, but I can't get the little arrows to be in the right position. This is the code I'm using to change my normal NSPopUpButton into the new style:
[button setBezelStyle:NSRoundRectBezelStyle];
('button' is an IBOutlet).
The problem here is that the arrows appear in the center of the button, rather than at the right. That can be fixed by adding this line...
[[button cell] setArrowPosition:NSPopUpArrowAtBottom];
...but then the arrows are too far to the right, overlapping the rounded edge of the button. (See attached pic.)
What am I doing wrong? (And am I just not seeing the options to access this style in InterfaceBuilder, or do I really need to do it through code?)
[button setBezelStyle:NSRoundRectBezelStyle];
('button' is an IBOutlet).
The problem here is that the arrows appear in the center of the button, rather than at the right. That can be fixed by adding this line...
[[button cell] setArrowPosition:NSPopUpArrowAtBottom];
...but then the arrows are too far to the right, overlapping the rounded edge of the button. (See attached pic.)
What am I doing wrong? (And am I just not seeing the options to access this style in InterfaceBuilder, or do I really need to do it through code?)