Initial OGComboBox implementation.

Only support for text so far.
This commit is contained in:
Jonathan Schleifer 2011-12-28 20:23:01 +01:00
parent 73e7da5fb7
commit 45380da631
5 changed files with 148 additions and 1 deletions

31
gtk/OGComboBoxItem.m Normal file
View file

@ -0,0 +1,31 @@
#import "OGComboBoxItem.h"
@implementation OGComboBoxItem
@synthesize label;
+ comboBoxItemWithLabel: (OFString*)label
{
return [[[self alloc] initWithLabel: label] autorelease];
}
- initWithLabel: (OFString*)label_
{
self = [super init];
@try {
label = [label_ copy];
} @catch (id e) {
[self release];
@throw e;
}
return self;
}
- (void)dealloc
{
[label release];
[super dealloc];
}
@end