0

I am using a 3 segment NSSegmentedControl for adding and removing configurations, as well as the cog "action" symbol to pop up a menu.

However, when the menu pops up it shows up as follows:

Bad Popup Position

I would much prefer the popup to be displayed centered above the cog segment instead below and sticking off the bottom of my window (which is actually a preference pane).

I have created a subclass of NSSegmentedCell to override the 'action' method as described in this answer.

I would prefer to avoid private APIs if at all possible!

Community
  • 1
  • 1
Paige DePol
  • 1,121
  • 1
  • 9
  • 23
  • How are you currently drawing the menu. It's actually possible for any button to display a menu when clicked. So get the behaviour you want, go the full manual route and display the menu your self (as part of the API to do this you have to specify the location of the menu). – Daniel Farrell Jul 11 '15 at 19:55
  • Thank you for your feedback, this is exactly what I have had to resort to... though one little thing I don't like is the cog button doesn't get the nice indented look when I pop up my menu... but I can live with that! – Paige DePol Jul 11 '15 at 22:53

0 Answers0