SCSArticleQueryResultsControllerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SCSArticleQueryResultsController.h |
– articleQueryWillChangeContent:
Message sent to the delegate when content changes will be made.
- (void)articleQueryWillChangeContent:(SCSArticleQueryResultsController *)controller
Parameters
controller |
The article query results controller. |
---|
Declared In
SCSArticleQueryResultsController.h
– articleQueryDidChangeContent:
Message sent to the delegate when content changes have been completed.
- (void)articleQueryDidChangeContent:(SCSArticleQueryResultsController *)controller
Parameters
controller |
The article query results controller. |
---|
Declared In
SCSArticleQueryResultsController.h
– articleQuery:didReloadWithError:
Indicates that the controller reloaded its contents entirely. If the error property is nonnull, then it indicates that an error occurred in the process.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller didReloadWithError:(nullable NSError *)error
Parameters
controller |
The article query results controller. |
---|---|
error |
The error that occurred, or |
Declared In
SCSArticleQueryResultsController.h
– articleQuery:article:insertedAtIndex:
Sent to the delegate when an article is inserted.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller article:(SCSArticle *)article insertedAtIndex:(NSUInteger)index
Parameters
controller |
The article query results controller. |
---|---|
article |
The article that was inserted. |
index |
The index where the article was inserted. |
Discussion
An article may be inserted at an index when it is first found, or when a reload occurs and new articles are found.
Declared In
SCSArticleQueryResultsController.h
– articleQuery:article:deletedAtIndex:
Sent to the delegate when an article is deleted.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller article:(SCSArticle *)article deletedAtIndex:(NSUInteger)index
Parameters
controller |
The article query results controller. |
---|---|
article |
The article that was deleted. |
index |
The index where the article was deleted. |
Discussion
Note that the article itself may not have been deleted; this merely means that the article was removed from the fetched list.
Declared In
SCSArticleQueryResultsController.h
– articleQuery:article:updatedAtIndex:
Sent to the delegate when an article is updated.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller article:(SCSArticle *)article updatedAtIndex:(NSUInteger)index
Parameters
controller |
The article query results controller. |
---|---|
article |
The article that was updated. |
index |
The index of the article. |
Declared In
SCSArticleQueryResultsController.h
– articleQuery:article:movedFromIndex:toIndex:
Sent to the delegate when an article is moved.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller article:(SCSArticle *)article movedFromIndex:(NSUInteger)oldIndex toIndex:(NSUInteger)newIndex
Parameters
controller |
The article query results controller. |
---|---|
article |
The article that was moved. |
oldIndex |
The index where the article existed prior to this update. |
newIndex |
The new index of the article. |
Discussion
An article may be moved if something influencing its sort criteria changes after a reload.
Declared In
SCSArticleQueryResultsController.h
– articleQuery:willBeginLoadingPage:
Sent to the delegate when a given page of articles beings loading.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller willBeginLoadingPage:(NSUInteger)page
Parameters
controller |
The article query results controller. |
---|---|
page |
The page number being loaded. |
Declared In
SCSArticleQueryResultsController.h
– articleQuery:didFinishLoadingPage:error:
Sent to the delegate when a given page of articles finishes loading.
- (void)articleQuery:(SCSArticleQueryResultsController *)controller didFinishLoadingPage:(NSUInteger)page error:(nullable NSError *)error
Parameters
controller |
The article query results controller. |
---|---|
page |
The page number being loaded. |
error |
The error that occurred, or |
Declared In
SCSArticleQueryResultsController.h