31 lines
410 B
Objective-C
31 lines
410 B
Objective-C
#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
|