Question

I'm using an NSPopupButton in my OS X app to present the user with a list of choices. I'm populating it like this:

[baudButton removeAllItems];
[baudButton addItemWithTitle:(@"Baud")];
[baudButton addItemWithTitle:(@"600")];
[baudButton addItemWithTitle:(@"1200")];
[baudButton addItemWithTitle:(@"2400")];

Is there a way to visually mark the selection, or should I use another control?

Was it helpful?

Solution

Setting the NSPopUpButton's type attribute to "Popup" gave me a checkmark on the selected item, and displays the item on the "closed" button.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top