|
|
|
@ -422,14 +422,14 @@ viewForSupplementaryElementOfKind:(NSCollectionViewSupplementaryElementKind)kind |
|
|
|
- (NSArray<VLCLibraryRepresentedItem *> *)representedItemsAtIndexPaths:(NSSet<NSIndexPath *> *const)indexPaths |
|
|
|
forCollectionView:(NSCollectionView *)collectionView |
|
|
|
{ |
|
|
|
NSMutableArray<VLCLibraryRepresentedItem *> * const representedItems = |
|
|
|
NSMutableArray<VLCLibraryRepresentedItem *> * const representedItems = |
|
|
|
[NSMutableArray arrayWithCapacity:indexPaths.count]; |
|
|
|
|
|
|
|
|
|
|
|
for (NSIndexPath * const indexPath in indexPaths) { |
|
|
|
const id<VLCMediaLibraryItemProtocol> libraryItem = |
|
|
|
const id<VLCMediaLibraryItemProtocol> libraryItem = |
|
|
|
[self libraryItemAtIndexPath:indexPath forCollectionView:collectionView]; |
|
|
|
VLCLibraryRepresentedItem * const representedItem = |
|
|
|
[[VLCLibraryRepresentedItem alloc] initWithItem:libraryItem |
|
|
|
VLCLibraryRepresentedItem * const representedItem = |
|
|
|
[[VLCLibraryRepresentedItem alloc] initWithItem:libraryItem |
|
|
|
parentType:self.currentParentType]; |
|
|
|
[representedItems addObject:representedItem]; |
|
|
|
} |
|
|
|
|