CPArrayController -setContent: fixed a bug where objects where not rearranged if clearsFilterPredicateOnInsertion == YES and filterPredicate == nil.

This commit is contained in:
cacaodev committed 2011-01-19 19:26:01 +01:00
1 parent 66a87c472b
commit 59cc590b51
2 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@
// We need to be in control of when notifications fire.
_contentObject = value;
if (_clearsFilterPredicateOnInsertion)
if (_clearsFilterPredicateOnInsertion && _filterPredicate != nil)
[self __setFilterPredicate:nil]; // Causes a _rearrangeObjects.
else
[self _rearrangeObjects];