소스 검색

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 {