ソースを参照

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
 };
 
+
 @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 {