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)
|
||||
if ([bestType isEqualToString:NSPasteboardTypeFileURL]) {
|
||||
NSMutableArray *urls = [[NSMutableArray alloc] init];
|
||||
|
||||
for (NSString *file in
|
||||
[[info draggingPasteboard] propertyListForType:NSPasteboardTypeFileURL]) {
|
||||
[urls addObject:[NSURL fileURLWithPath:file]];
|
||||
}
|
||||
NSArray<Class> *classes = @[[NSURL class]];
|
||||
NSDictionary *options = @{};
|
||||
NSArray<NSURL*> *files = [pboard readObjectsForClasses:classes options:options];
|
||||
|
||||
//[playlistLoader insertURLs:urls atIndex:row sort:YES];
|
||||
[acceptedURLs addObjectsFromArray:urls];
|
||||
[acceptedURLs addObjectsFromArray:files];
|
||||
}
|
||||
|
||||
// Get files from an iTunes drop
|
||||
|
|
Loading…
Reference in a new issue