mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-25 22:36:52 +00:00
NSComboBoxCell: implemented -(int)indexOfSelectedItem and -objectValueOfSelectedItem
This commit is contained in:
parent
b83623594d
commit
28cb583b7f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user