RKRequestFilterableTTModel Class Reference
Inherits from | RKRequestTTModel : TTModel |
Declared in | RKRequestFilterableTTModel.h RKRequestFilterableTTModel.m |
Overview
Provides an interface for searching and filtering a collection of objects loaded from a remote source
Tasks
Other Methods
-
predicate
property -
sortDescriptors
An array of sort descriptors to sort the objects with
property -
sortSelector
A selector to use in sorting the objects. When present, the sortSelector will be used for sorting objects, rather than the sortDescriptors.
property -
searchEngine
A search engine instance for searching the data. If none is assigned, a default search engine will be created for you
property -
– createSearchEngine
Creates an RKSearchEngine instance for searching the collection.
-
– reset
Resets the model by clearing the filter, sort descriptor, and search text
-
– didSearchCollectionWithEmptyText:
Triggered when the model was search with empty text. Default implementation preserves filtered collection.
-
– search:
Search the model for matching text
Other Methods
Properties
predicate
@property (nonatomic, retain) NSPredicate *predicate
Declared In
RKRequestFilterableTTModel.h
searchEngine
A search engine instance for searching the data. If none is assigned, a default search engine will be created for you
@property (nonatomic, retain) RKSearchEngine *searchEngine
Declared In
RKRequestFilterableTTModel.h
sortDescriptors
An array of sort descriptors to sort the objects with
@property (nonatomic, retain) NSArray *sortDescriptors
Declared In
RKRequestFilterableTTModel.h
sortSelector
A selector to use in sorting the objects. When present, the sortSelector will be used for sorting objects, rather than the sortDescriptors.
@property (nonatomic, assign) SEL sortSelector
Declared In
RKRequestFilterableTTModel.h
Instance Methods
createSearchEngine
Creates an RKSearchEngine instance for searching the collection.
- (RKSearchEngine *)createSearchEngine
Declared In
RKRequestFilterableTTModel.h
didSearchCollectionWithEmptyText:
Triggered when the model was search with empty text. Default implementation preserves filtered collection.
- (NSArray *)didSearchCollectionWithEmptyText:(NSArray *)collection
Declared In
RKRequestFilterableTTModel.h