From a4387dc6d1149708312d1e1b513ac55f1ccc7b3e Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 10 Feb 2022 01:32:09 -0800 Subject: [PATCH] Playlist now supports dragging tracks out of app Playlist now supports dragging copies of URL references to other apps, including Finder, and possibly other audio players. The chosen drag operation is to copy files. Fixes #75 Signed-off-by: Christopher Snowhill --- Playlist/PlaylistController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index bed0319d7..b87378a60 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -117,6 +117,8 @@ static NSArray *cellIdentifiers = nil; options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:nil]; [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:@"values.fontSize" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionInitial) context:nil]; + + [self.tableView setDraggingSourceOperationMask:NSDragOperationCopy forLocal:NO]; } - (void)observeValueForKeyPath:(NSString *)keyPath