Skip to content

Commit

Permalink
rename map
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Nystrom committed Feb 12, 2017
1 parent 6635283 commit 49c364f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/IGListAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#import "IGListSectionControllerInternal.h"

@implementation IGListAdapter {
NSMapTable<UICollectionReusableView *, IGListSectionController<IGListSectionType> *> *_cellSectionControllerMap;
NSMapTable<UICollectionReusableView *, IGListSectionController<IGListSectionType> *> *_viewSectionControllerMap;
BOOL _isDequeuingCell;
BOOL _isSendingWorkingRangeDisplayUpdates;
}
Expand Down Expand Up @@ -49,7 +49,7 @@ - (instancetype)initWithUpdater:(id <IGListUpdatingDelegate>)updater
_displayHandler = [[IGListDisplayHandler alloc] init];
_workingRangeHandler = [[IGListWorkingRangeHandler alloc] initWithWorkingRangeSize:workingRangeSize];

_cellSectionControllerMap = [NSMapTable mapTableWithKeyOptions:NSMapTableObjectPointerPersonality | NSMapTableStrongMemory
_viewSectionControllerMap = [NSMapTable mapTableWithKeyOptions:NSMapTableObjectPointerPersonality | NSMapTableStrongMemory
valueOptions:NSMapTableStrongMemory];

_updater = updater;
Expand Down Expand Up @@ -630,17 +630,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<IGListSectionType> *)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
Expand Down

0 comments on commit 49c364f

Please sign in to comment.