From 848dc26a0defc84073b758f7195a712a5e8e3189 Mon Sep 17 00:00:00 2001 From: Levi McCallum Date: Sun, 11 Oct 2015 10:33:09 -0700 Subject: [PATCH] Fix hook method naming --- AsyncDisplayKit/Details/ASCollectionDataController.mm | 2 +- AsyncDisplayKit/Details/ASDataController+Subclasses.h | 2 +- AsyncDisplayKit/Details/ASDataController.mm | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AsyncDisplayKit/Details/ASCollectionDataController.mm b/AsyncDisplayKit/Details/ASCollectionDataController.mm index e1a0327af3..f05e77780b 100644 --- a/AsyncDisplayKit/Details/ASCollectionDataController.mm +++ b/AsyncDisplayKit/Details/ASCollectionDataController.mm @@ -76,7 +76,7 @@ }]; } -- (void)prepareInsertSections:(NSIndexSet *)sections +- (void)prepareForInsertSections:(NSIndexSet *)sections { NSArray *elementKinds = [self.collectionDataSource supplementaryNodeKindsInDataController:self]; [elementKinds enumerateObjectsUsingBlock:^(NSString *kind, NSUInteger idx, BOOL *stop) { diff --git a/AsyncDisplayKit/Details/ASDataController+Subclasses.h b/AsyncDisplayKit/Details/ASDataController+Subclasses.h index 16ab8cc028..1c3a54a2c0 100644 --- a/AsyncDisplayKit/Details/ASDataController+Subclasses.h +++ b/AsyncDisplayKit/Details/ASDataController+Subclasses.h @@ -24,7 +24,7 @@ */ - (void)willReloadData; -- (void)prepareInsertSections:(NSIndexSet *)sections; +- (void)prepareForInsertSections:(NSIndexSet *)sections; - (void)willInsertSections:(NSIndexSet *)sections; diff --git a/AsyncDisplayKit/Details/ASDataController.mm b/AsyncDisplayKit/Details/ASDataController.mm index 8ae2454c78..a04cfb3679 100644 --- a/AsyncDisplayKit/Details/ASDataController.mm +++ b/AsyncDisplayKit/Details/ASDataController.mm @@ -549,7 +549,7 @@ static void *kASSizingQueueContext = &kASSizingQueueContext; [_editingTransactionQueue waitUntilAllOperationsAreFinished]; [self accessDataSourceWithBlock:^{ - [self prepareInsertSections:sections]; + [self prepareForInsertSections:sections]; NSMutableArray *updatedNodes = [NSMutableArray array]; NSMutableArray *updatedIndexPaths = [NSMutableArray array]; @@ -682,7 +682,7 @@ static void *kASSizingQueueContext = &kASSizingQueueContext; // Optional template hook for subclasses (See ASDataController+Subclasses.h) } -- (void)prepareInsertSections:(NSIndexSet *)sections +- (void)prepareForInsertSections:(NSIndexSet *)sections { // Optional template hook for subclasses (See ASDataController+Subclasses.h) }