Skip to content
Snippets Groups Projects
Commit b9263040 authored by Claudio Cambra's avatar Claudio Cambra Committed by Felix Paul Kühne
Browse files

macosx: Implement numberOfRowsInTableView in shows data source


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 099ba5c7
No related branches found
No related tags found
No related merge requests found
......@@ -85,4 +85,21 @@
}];
}
#pragma mark - table view data source and delegation
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView
{
if (tableView == self.showsTableView) {
return self.showsArray.count;
}
const NSInteger selectedShowRow = self.showsTableView.selectedRow;
if (tableView == self.selectedShowTableView && selectedShowRow > -1) {
VLCMediaLibraryShow * const show = self.showsArray[selectedShowRow];
return show.episodeCount;
}
return 0;
}
@end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment