Hopefully fix Drag and Drop for everyone
This commit is contained in:
parent
dce400435e
commit
583b8f3cb4
1 changed files with 4 additions and 7 deletions
|
@ -230,15 +230,12 @@
|
||||||
|
|
||||||
// Get files from a normal file drop (such as from Finder)
|
// Get files from a normal file drop (such as from Finder)
|
||||||
if ([bestType isEqualToString:NSPasteboardTypeFileURL]) {
|
if ([bestType isEqualToString:NSPasteboardTypeFileURL]) {
|
||||||
NSMutableArray *urls = [[NSMutableArray alloc] init];
|
NSArray<Class> *classes = @[[NSURL class]];
|
||||||
|
NSDictionary *options = @{};
|
||||||
for (NSString *file in
|
NSArray<NSURL*> *files = [pboard readObjectsForClasses:classes options:options];
|
||||||
[[info draggingPasteboard] propertyListForType:NSPasteboardTypeFileURL]) {
|
|
||||||
[urls addObject:[NSURL fileURLWithPath:file]];
|
|
||||||
}
|
|
||||||
|
|
||||||
//[playlistLoader insertURLs:urls atIndex:row sort:YES];
|
//[playlistLoader insertURLs:urls atIndex:row sort:YES];
|
||||||
[acceptedURLs addObjectsFromArray:urls];
|
[acceptedURLs addObjectsFromArray:files];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get files from an iTunes drop
|
// Get files from an iTunes drop
|
||||||
|
|
Loading…
Reference in a new issue