Explorar o código

Fix #450: broken search on NSUserDefaults

Tanner Bennett %!s(int64=5) %!d(string=hai) anos
pai
achega
5c8b334a84

+ 5 - 1
Classes/ObjectExplorers/Sections/FLEXCollectionContentSection.m

@@ -20,9 +20,13 @@ typedef NS_ENUM(NSUInteger, FLEXCollectionType) {
     FLEXKeyedCollection
 };
 
+
 @interface FLEXCollectionContentSection ()
+/// Generated from \c collectionFuture or \c collection
 @property (nonatomic, copy) id<FLEXCollection> cachedCollection;
+/// A static collection to display
 @property (nonatomic, readonly) id<FLEXCollection> collection;
+/// A collection that may change over time and can be called upon for new data
 @property (nonatomic, readonly) FLEXCollectionContentFuture collectionFuture;
 @property (nonatomic, readonly) FLEXCollectionType collectionType;
 @end
@@ -163,7 +167,7 @@ typedef NS_ENUM(NSUInteger, FLEXCollectionType) {
             return matcher(filterText, obj);
         }];
         
-        id<FLEXMutableCollection> tmp = self.collection.mutableCopy;
+        id<FLEXMutableCollection> tmp = self.cachedCollection.mutableCopy;
         [tmp filterUsingPredicate:filter];
         self.cachedCollection = tmp;
     } else {