Changeset 8667
- Timestamp:
- Jun 10, 2009, 10:56:24 PM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r8530 r8667 2457 2457 NSString * fullFile = [path stringByAppendingPathComponent: file]; 2458 2458 2459 if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"]) 2459 if (![[[NSWorkspace sharedWorkspace] typeOfFile: fullFile error: NULL] isEqualToString: @"org.bittorrent.torrent"] 2460 || [[fullFile pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 2460 2461 continue; 2461 2462 … … 2699 2700 for (NSString * file in files) 2700 2701 { 2701 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]) 2702 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"] 2703 || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 2702 2704 { 2703 2705 torrent = YES; … … 2760 2762 for (NSString * file in files) 2761 2763 { 2762 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]) 2764 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"] 2765 || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 2763 2766 { 2764 2767 torrent = YES; -
trunk/macosx/DragOverlayWindow.m
r8499 r8667 84 84 for (NSString * file in files) 85 85 { 86 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"]) 86 if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"] 87 || [[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame) 87 88 { 88 89 tr_ctor * ctor = tr_ctorNew(fLib); -
trunk/macosx/Torrent.m
r8548 r8667 1642 1642 result = tr_ctorSetMetainfoFromFile(ctor, [path UTF8String]); 1643 1643 1644 //backup - shouldn't be needed after upgrade to 1. 621644 //backup - shouldn't be needed after upgrade to 1.70 1645 1645 if (result != TR_OK && hashString) 1646 1646 result = tr_ctorSetMetainfoFromHash(ctor, [hashString UTF8String]);
Note: See TracChangeset
for help on using the changeset viewer.