From fd64cc38a989d8680e56a97bd0f53c1131ca545a Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Sun, 12 Feb 2017 15:35:44 -0500 Subject: [PATCH] rename map --- Source/IGListAdapter.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index 6af4dd0cb..52bcd8d16 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -17,7 +17,7 @@ #import "IGListSectionControllerInternal.h" @implementation IGListAdapter { - NSMapTable *> *_cellSectionControllerMap; + NSMapTable *> *_viewSectionControllerMap; BOOL _isDequeuingCell; BOOL _isSendingWorkingRangeDisplayUpdates; } @@ -49,7 +49,7 @@ - (instancetype)initWithUpdater:(id )updater _displayHandler = [[IGListDisplayHandler alloc] init]; _workingRangeHandler = [[IGListWorkingRangeHandler alloc] initWithWorkingRangeSize:workingRangeSize]; - _cellSectionControllerMap = [NSMapTable mapTableWithKeyOptions:NSMapTableObjectPointerPersonality | NSMapTableStrongMemory + _viewSectionControllerMap = [NSMapTable mapTableWithKeyOptions:NSMapTableObjectPointerPersonality | NSMapTableStrongMemory valueOptions:NSMapTableStrongMemory]; _updater = updater; @@ -621,17 +621,17 @@ - (void)mapView:(UICollectionReusableView *)view toSectionController:(IGListSect IGAssertMainThread(); IGParameterAssert(view != nil); IGParameterAssert(sectionController != nil); - [_cellSectionControllerMap setObject:sectionController forKey:view]; + [_viewSectionControllerMap setObject:sectionController forKey:view]; } - (nullable IGListSectionController *)sectionControllerForView:(UICollectionReusableView *)view { IGAssertMainThread(); - return [_cellSectionControllerMap objectForKey:view]; + return [_viewSectionControllerMap objectForKey:view]; } - (void)removeMapForView:(UICollectionReusableView *)view { IGAssertMainThread(); - [_cellSectionControllerMap removeObjectForKey:view]; + [_viewSectionControllerMap removeObjectForKey:view]; } #pragma mark - UICollectionViewDataSource