mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-27 14:00:22 +00:00
NSArrayController selectionIndex should return NSNotFound when there is no selection
This commit is contained in:
parent
9a5c9ba947
commit
b3026a2231
@ -292,7 +292,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
|
||||
-(NSUInteger)selectionIndex
|
||||
{
|
||||
return [_selectionIndexes firstIndex];
|
||||
if (_selectionIndexes == nil) {
|
||||
return NSNotFound;
|
||||
} else {
|
||||
return [_selectionIndexes firstIndex];
|
||||
}
|
||||
}
|
||||
|
||||
-(BOOL)setSelectionIndex:(unsigned)index
|
||||
|
Loading…
Reference in New Issue
Block a user