mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 14:40:48 +00:00
Encapsulate the renderedPaths and pathsToViews ivars that track which views were displayed in a viewBased table
This commit is contained in:
parent
c1e3cf2f08
commit
3ff5efed30
2 changed files with 11 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue