In IB, I created a NSPopupButton for the purpose of giving a list of options to the user. I removed the default item 1, item 2, etc. from NSMenu.
In my controller, I populate the control with the following code:
The control populates fine and I can see my three items. However, when I try to select an item, it always pops back to the first item in the list.
What would cause this? Am I binding incorrectly?
Many thanks
In my controller, I populate the control with the following code:
Code:
NSMutableArray *statusList = [[NSMutableArray alloc] init];
[statusList addObject:@"Open"];
[statusList addObject:@"Closed"];
[statusList addObject:@"On hold"];
[status addItemsWithTitles:statusList];
The control populates fine and I can see my three items. However, when I try to select an item, it always pops back to the first item in the list.
What would cause this? Am I binding incorrectly?
Many thanks