Encapsulate the renderedPaths and pathsToViews ivars that track which views were displayed in a viewBased table

This commit is contained in:
Gregory John Casamento 2024-04-22 08:34:48 -04:00
parent c1e3cf2f08
commit 3ff5efed30
2 changed files with 11 additions and 13 deletions

View file

@ -7138,14 +7138,15 @@ For a more detailed explanation, -setSortDescriptors:. */
}
}
- (NSMapTable *) _renderedViewPaths
- (NSView *) _renderedViewForPath: (NSIndexPath *)path
{
return _renderedViewPaths;
return [_renderedViewPaths objectForKey: path];
}
- (NSMapTable *) _pathsToViews
- (void) _setRenderedView: (NSView *)view forPath: (NSIndexPath *)path
{
return _pathsToViews;
[_renderedViewPaths setObject: view forKey: path];
[_pathsToViews setObject: path forKey: view];
}
@end