I'm adding strings to a NSComboBox using -addItemObjectWithValue
, and the items are appearing when the application is run.
However, right after adding the items, if I check the -numberOfItems
, I get 1, even though there are more than that. From there, any data I try I pull back out is wrong.
I'm adding the items as part of -awakeFromNib
.
I'm pretty sure it's wired correctly (the controller is a NSWindowController, I don't think this matters though?), and it's not set to use a DataSource, or AutoComplete, or anything funky.