Populating an NSPopUpButtonCell with string values
Posted
by sirjorj
on Stack Overflow
See other posts from Stack Overflow
or by sirjorj
Published on 2010-04-12T00:35:01Z
Indexed on
2010/04/12
0:43 UTC
Read the original article
Hit count: 504
I am trying to populate a NSPopUpButtonCell with a list of strings. In -(init), I populate an NSArray with the values I want in the PopUp Button. How do I connect this to the NSArrayController I added in IB? Does my app delegate need an IBOutlet NSArrayController to connect to or is there a way to bind it?
Also, when I bind the NSArrayController to the NSPopUpButtonCell, do which Content do I bind it to? Content or Content Values?
jorj
© Stack Overflow or respective owner