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

macosx: Implement libraryItemAtIndexPath in shows data source


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 84cc7ae1
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,13 @@
# pragma mark - collection view data source and delegation
- (id<VLCMediaLibraryItemProtocol>)libraryItemAtIndexPath:(NSIndexPath *)indexPath
forCollectionView:(NSCollectionView *)collectionView
{
VLCMediaLibraryShow * const show = self.showsArray[indexPath.section];
return show.episodes[indexPath.item];
}
- (NSInteger)numberOfSectionsInCollectionView:(NSCollectionView *)collectionView
{
return self.showsArray.count;
......
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