mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-25 22:36:52 +00:00
acc. Cocoa Docs., NSComboBoxCell objectValueOfSelectedItem should log a message if it is called when usesDataSource is set to YES
This commit is contained in:
parent
550372950a
commit
6021275b90
@ -173,7 +173,13 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
}
|
||||
|
||||
-objectValueOfSelectedItem {
|
||||
return [self objectValue];
|
||||
if (!_usesDataSource)
|
||||
return [self objectValue];
|
||||
else
|
||||
{
|
||||
NSLog(@"*** -[%@ %s] should not be called when usesDataSource is set to YES",isa,SELNAME(_cmd));
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
-(void)selectItemAtIndex:(int)index {
|
||||
|
Loading…
x
Reference in New Issue
Block a user