Hello,
I followed the reference guide to NSComboBoxes, but my example ComboBox is empty, here is my code extracted from an NSWindowController:
The message is printed, but the combobox is empty. What am I missing?
I followed the reference guide to NSComboBoxes, but my example ComboBox is empty, here is my code extracted from an NSWindowController:
Code:
- (void)windowDidLoad
{
NSLog(@"New Phrases Window did load\n");
// Load Data into Combo Boxes
[actionField addItemWithObjectValue:@"1"];
[actionField addItemWithObjectValue:@"2"];
[actionField addItemWithObjectValue:@"3"];
[actionField setStringValue:@"Red"];
}
Last edited by a moderator: