Changeset 8499


Ignore:
Timestamp:
May 23, 2009, 8:09:41 PM (12 years ago)
Author:
livings124
Message:

eplace another file extension check with a Uniform Type Identifier check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/DragOverlayWindow.m

    r8122 r8499  
    8484    for (NSString * file in files)
    8585    {
    86         if ([[file pathExtension] caseInsensitiveCompare: @"torrent"] == NSOrderedSame)
     86        if ([[[NSWorkspace sharedWorkspace] typeOfFile: file error: NULL] isEqualToString: @"org.bittorrent.torrent"])
    8787        {
    8888            tr_ctor * ctor = tr_ctorNew(fLib);
Note: See TracChangeset for help on using the changeset viewer.