@@ -36,17 +36,17 @@ @end @implementation TestSource - init { self = [super init]; - + items = (OGComboBoxItem **)malloc(sizeof(OGComboBoxItem *) << 2); items[0] = [OGComboBoxItem comboBoxItemWithLabel : @"Test Combo Item 0"]; items[1] = [OGComboBoxItem comboBoxItemWithLabel : @"Test Combo Item 1"]; items[2] = [OGComboBoxItem comboBoxItemWithLabel : @"Test Combo Item 2"]; items[3] = [OGComboBoxItem comboBoxItemWithLabel : @"Test Combo Item 3"]; - + [self retain]; return self; } - (size_t)numberOfItemsInComboBox: (OGComboBox*)comboBox { @@ -87,11 +87,11 @@ b.delegate = self; [hboxPre appendChild: b expand: YES fill: YES padding: 0]; - + OGComboBox *cb = [[OGComboBox alloc] initWithParent : hboxPre]; cb.dataSource = [[TestSource alloc] init]; cb.delegate = self; [hboxPre appendChild: cb expand: YES