objective c - How do I populate an NSPopupButton with an array of strings? -


Simple question, but I'm struggling to understand that in the interface builder X-code, the rest of the programs How to chat with

There is an NSPopupButton in my UI that I would like to fill the stars which I provide. I have a controller class that defines the method for executing that button when the button is clicked. Is it that I will populate NSPopupButton? It seems that I need to excel somewhere, but I am confused about where to do it. I know I need to use addItemsWithTitles, but where do I call it?

The list does not count over time, awakeFromNib (in the controller) will be a good place to populate the menu If it is dynamic for you, then you want to transform it, when the source of those wires changes.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -