NSComboBoxCell: implemented -(int)indexOfSelectedItem and -objectValueOfSelectedItem

This commit is contained in:
Dr. Rolf Jansen 2008-07-02 21:06:31 +00:00
parent b83623594d
commit 28cb583b7f

View File

@ -168,13 +168,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-(int)indexOfSelectedItem {
NSUnimplementedMethod();
return 0;
int index = [_objectValues indexOfObject:[self objectValue]];
return (index != NSNotFound)?index:-1;
}
-objectValueOfSelectedItem {
NSUnimplementedMethod();
return 0;
return [self objectValue];
}
-(void)selectItemAtIndex:(int)index {