Преглед изворни кода

Fix #450: broken search on NSUserDefaults

Tanner Bennett пре 5 година
родитељ
комит
5c8b334a84
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      Classes/ObjectExplorers/Sections/FLEXCollectionContentSection.m

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

@@ -20,9 +20,13 @@ typedef NS_ENUM(NSUInteger, FLEXCollectionType) {
     FLEXKeyedCollection
     FLEXKeyedCollection
 };
 };
 
 
+
 @interface FLEXCollectionContentSection ()
 @interface FLEXCollectionContentSection ()
+/// Generated from \c collectionFuture or \c collection
 @property (nonatomic, copy) id<FLEXCollection> cachedCollection;
 @property (nonatomic, copy) id<FLEXCollection> cachedCollection;
+/// A static collection to display
 @property (nonatomic, readonly) id<FLEXCollection> collection;
 @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) FLEXCollectionContentFuture collectionFuture;
 @property (nonatomic, readonly) FLEXCollectionType collectionType;
 @property (nonatomic, readonly) FLEXCollectionType collectionType;
 @end
 @end
@@ -163,7 +167,7 @@ typedef NS_ENUM(NSUInteger, FLEXCollectionType) {
             return matcher(filterText, obj);
             return matcher(filterText, obj);
         }];
         }];
         
         
-        id<FLEXMutableCollection> tmp = self.collection.mutableCopy;
+        id<FLEXMutableCollection> tmp = self.cachedCollection.mutableCopy;
         [tmp filterUsingPredicate:filter];
         [tmp filterUsingPredicate:filter];
         self.cachedCollection = tmp;
         self.cachedCollection = tmp;
     } else {
     } else {