fixed a bug that removeObject shows empty selection if an object at index 0 was removed

This commit is contained in:
ggsato committed 2012-07-17 15:36:18 +09:00
1 parent fea0299033
commit 364208e029
8 files changed
+413

No files matched your search

+3
View File
@@ -879,6 +879,9 @@
[_arrangedObjects removeObjectAtIndex:pos];
[_selectionIndexes shiftIndexesStartingAtIndex:pos by:-1];
// This will automatically handle the avoidsEmptySelection case.
[self __setSelectionIndexes:_selectionIndexes];
}
[self didChangeValueForKey:@"content"];