When removing an item from the collection view, we now unconditionally unhighlight it.

We also reapply highlights after reloading finishes.

Closes #248.
This commit is contained in:
Ross Boucher committed 2010-01-31 12:29:38 -08:00
1 parent 1d9e2f8169
commit 840e9c7671
1 file changed
+7 -1
+7 -1
View File
@@ -333,6 +333,8 @@
while (count--)
{
[[_items[count] view] removeFromSuperview];
[_items[count] setSelected:NO];
_cachedItems.push(_items[count]);
}
@@ -351,7 +353,11 @@
[self addSubview:[_items[index] view]];
}
index = CPNotFound;
while ((index = [_selectionIndexes indexGreaterThanIndex:index]) != CPNotFound)
[_items[index] setSelected:YES];
[self tile];
}