diff --git a/macosx/DragOverlayWindow.m b/macosx/DragOverlayWindow.m index b49a16c18..8d13595a5 100644 --- a/macosx/DragOverlayWindow.m +++ b/macosx/DragOverlayWindow.m @@ -83,7 +83,7 @@ for (NSString * file in files) { - if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) + if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]) { tr_ctor * ctor = tr_ctorNew(fLib); tr_ctorSetMetainfoFromFile(ctor, [file UTF8String]);