Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding options to NSPopUpButton in Interface Builder

So when I add an NSPopUpButton in Xcode's Interface builder, it automatically has 3 options in the dropdown which can be worked with in the IB; however, I want to have 8 options in my popup. I know I can just add these in code, but it would be much more convenient if there was a way to add them right in the IB, without making the popup button a property. Is there any way to do this?

like image 318
Matt Cooper Avatar asked Feb 08 '13 04:02

Matt Cooper


1 Answers

If you expand the NSPopupButton, there is a "Popup Button Cell". Expand that and you will find a "Menu". You can drag new NSMenuItems to that menu in Interface Builder.

enter image description here

like image 113
Fruity Geek Avatar answered Oct 25 '22 14:10

Fruity Geek