Minor cleanup, move storage of view code to conditional where it is created, suggested by @fredkiefer

This commit is contained in:
Gregory John Casamento 2024-06-16 21:01:41 -04:00
parent cf7b9ebd39
commit baca2ae98a
2 changed files with 4 additions and 2 deletions

View file

@ -2240,10 +2240,11 @@ Also returns the child index relative to this parent. */
{
view = [self _prototypeCellViewFromTableColumn: tb];
}
[self _setRenderedView: view forPath: path];
}
[view setFrame: drawingRect];
[self _setRenderedView: view forPath: path];
return view;
}

View file

@ -7123,10 +7123,11 @@ For a more detailed explanation, -setSortDescriptors:. */
{
view = [self _prototypeCellViewFromTableColumn: tb];
}
[self _setRenderedView: view forPath: path];
}
[view setFrame: drawingRect];
[self _setRenderedView: view forPath: path];
return view;
}