Add 10.7 methods to NSTableView, implement viewAtColumn:row:makeIfnecessary:

This commit is contained in:
Gregory John Casamento 2024-04-26 11:40:17 -04:00
parent 41c7257d4b
commit d3a0dd23c0

View file

@ -6947,7 +6947,10 @@ For a more detailed explanation, -setSortDescriptors:. */
- (NSView *) viewAtColumn: (NSInteger)column row: (NSInteger)row makeIfNecessary: (BOOL)flag
{
return nil;
NSIndexPath *path = [NSIndexPath indexPathForItem: row inSection: column];
NSView *view = [_renderedViewPaths objectForKey: path];
return view;
}
- (void) registerNib: (NSNib *)nib