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

macosx: Mark properties holding views in library data sources as weak


These views are always held by parent view controllers

Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 44516af4
No related branches found
No related tags found
1 merge request!6001macosx: Avoid retaining objects that are not necessary to keep alive
......@@ -33,9 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
@property (readonly) NSArray<id<VLCMediaLibraryItemProtocol>> *backingArray;
@property (readwrite) NSCollectionView *collectionView;
@property (readwrite) NSTableView *masterTableView;
@property (readwrite) NSTableView *detailTableView;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) NSTableView *masterTableView;
@property (readwrite, weak) NSTableView *detailTableView;
- (void)reloadData;
......
......@@ -28,8 +28,8 @@ NS_ASSUME_NONNULL_BEGIN
@protocol VLCLibraryMasterDetailViewTableViewDataSource <VLCLibraryTableViewDataSource>
@property (readwrite) NSTableView *masterTableView;
@property (readwrite) NSTableView *detailTableView;
@property (readwrite, weak) NSTableView *masterTableView;
@property (readwrite, weak) NSTableView *detailTableView;
@end
......
......@@ -62,15 +62,15 @@ extern NSString * const VLCLibraryAudioDataSourceDisplayedCollectionChangedNotif
@interface VLCLibraryAudioDataSource : NSObject <VLCLibraryTableViewDataSource, VLCLibraryCollectionViewDataSource, iCarouselDataSource>
@property (readwrite, assign) VLCLibraryAudioGroupDataSource *audioGroupDataSource;
@property (readwrite, assign) NSTableView *collectionSelectionTableView;
@property (readwrite, assign) NSTableView *songsTableView;
@property (readwrite, assign) NSCollectionView *collectionView;
@property (readwrite, assign) iCarousel *carouselView;
@property (readwrite, assign) NSTableView *gridModeListTableView;
@property (readwrite, weak) VLCLibraryModel *libraryModel;
@property (readwrite, weak) NSTableView *collectionSelectionTableView;
@property (readwrite, weak) NSTableView *songsTableView;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) iCarousel *carouselView;
@property (readwrite, weak) NSTableView *gridModeListTableView;
@property (nonatomic, readwrite, assign) VLCAudioLibrarySegment audioLibrarySegment;
@property (readwrite, strong) VLCLibraryAudioGroupDataSource *audioGroupDataSource;
@property (readonly) size_t collectionToDisplayCount;
@property (readonly) NSInteger displayedCollectionCount;
......
......@@ -34,8 +34,8 @@ extern NSString * const VLCLibraryVideoCollectionViewDataSourceDisplayedCollecti
@interface VLCLibraryHomeViewVideoContainerViewDataSource : NSObject <VLCLibraryCollectionViewDataSource, iCarouselDataSource>
@property (readwrite, assign) NSCollectionView *collectionView;
@property (readwrite, assign) iCarousel *carouselView;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) iCarousel *carouselView;
@property (readwrite, assign, nonatomic) VLCLibraryVideoCollectionViewGroupDescriptor *groupDescriptor;
@property (readwrite, assign) VLCLibraryHomeViewVideoGridContainerView *parentCell;
......
......@@ -40,13 +40,13 @@ extern NSString * const VLCMediaSourceBaseDataSourceNodeChanged;
NSTableViewDelegate,
NSTableViewDataSource>
@property (readwrite) NSCollectionView *collectionView;
@property (readwrite) NSScrollView *collectionViewScrollView;
@property (readwrite) NSTableView *tableView;
@property (readwrite) NSScrollView *tableViewScrollView;
@property (readwrite) NSButton *homeButton;
@property (readwrite) VLCInputNodePathControl *pathControl;
@property (readwrite) NSVisualEffectView *pathControlVisualEffectView;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) NSScrollView *collectionViewScrollView;
@property (readwrite, weak) NSTableView *tableView;
@property (readwrite, weak) NSScrollView *tableViewScrollView;
@property (readwrite, weak) NSButton *homeButton;
@property (readwrite, weak) VLCInputNodePathControl *pathControl;
@property (readwrite, weak) NSVisualEffectView *pathControlVisualEffectView;
@property (readwrite, nonatomic) VLCMediaSourceMode mediaSourceMode;
@property (readwrite, nonatomic) VLCMediaSourceDataSource *childDataSource;
......
......@@ -39,9 +39,9 @@ extern NSString * const VLCMediaSourceDataSourceNodeChanged;
@property (readwrite, retain) VLCMediaSource *displayedMediaSource;
@property (readwrite, retain, nonatomic) VLCInputNode *nodeToDisplay;
@property (readwrite, assign) NSCollectionView *collectionView;
@property (readwrite, assign) NSTableView *tableView;
@property (readwrite) VLCInputNodePathControl *pathControl;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) NSTableView *tableView;
@property (readwrite, weak) VLCInputNodePathControl *pathControl;
- (void)setupViews;
- (VLCInputItem*)mediaSourceInputItemAtRow:(NSInteger)tableViewRow;
......
......@@ -33,9 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
@interface VLCLibraryPlaylistDataSource : NSObject<VLCLibraryCollectionViewDataSource, VLCLibraryMasterDetailViewTableViewDataSource>
@property (readwrite) NSTableView *masterTableView;
@property (readwrite) NSTableView *detailTableView;
@property (readonly, weak) VLCLibraryModel *libraryModel;
@property (readwrite, weak) NSTableView *masterTableView;
@property (readwrite, weak) NSTableView *detailTableView;
@property (readwrite, nonatomic) NSArray<NSCollectionView *> *collectionViews;
@property (readwrite, nonatomic) vlc_ml_playlist_type_t playlistType;
......
......@@ -33,10 +33,10 @@ NS_ASSUME_NONNULL_BEGIN
extern NSString * const VLCLibraryVideoDataSourceDisplayedCollectionChangedNotification;
@property (readwrite, assign) NSCollectionView *collectionView;
@property (readwrite) NSTableView *masterTableView;
@property (readwrite) NSTableView *detailTableView;
@property (readwrite, weak) VLCLibraryModel *libraryModel;
@property (readwrite, weak) NSCollectionView *collectionView;
@property (readwrite, weak) NSTableView *masterTableView;
@property (readwrite, weak) NSTableView *detailTableView;
- (void)reloadData;
......
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