Changeset 504


Ignore:
Timestamp:
Jul 2, 2006, 9:57:51 PM (16 years ago)
Author:
livings124
Message:

I was always taught that constants should be in all caps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r503 r504  
    4141#define TOOLBAR_RESUME_SELECTED @"Toolbar Resume Selected"
    4242
    43 #define TorrentTableViewDataType @"TorrentTableViewDataType"
     43#define TORRENT_TABLE_VIEW_DATA_TYPE    @"TorrentTableViewDataType"
    4444
    4545#define WEBSITE_URL @"http://transmission.m0k.org/"
     
    142142
    143143    [fTableView registerForDraggedTypes: [NSArray arrayWithObjects: NSFilenamesPboardType,
    144                                                                 TorrentTableViewDataType, nil]];
     144                                                        TORRENT_TABLE_VIEW_DATA_TYPE, nil]];
    145145
    146146    //register for sleep notifications
     
    11441144    if ([fSortType isEqualToString: @"Order"])
    11451145    {
    1146         [pasteboard declareTypes: [NSArray arrayWithObject: TorrentTableViewDataType] owner: self];
    1147         [pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes] forType: TorrentTableViewDataType];
     1146        [pasteboard declareTypes: [NSArray arrayWithObject: TORRENT_TABLE_VIEW_DATA_TYPE] owner: self];
     1147        [pasteboard setData: [NSKeyedArchiver archivedDataWithRootObject: indexes]
     1148                                forType: TORRENT_TABLE_VIEW_DATA_TYPE];
    11481149        return YES;
    11491150    }
     
    11641165        }
    11651166    }
    1166     else if ([[pasteboard types] containsObject: TorrentTableViewDataType])
     1167    else if ([[pasteboard types] containsObject: TORRENT_TABLE_VIEW_DATA_TYPE])
    11671168    {
    11681169        [fTableView setDropRow: row dropOperation: NSTableViewDropAbove];
     
    11901191   
    11911192        NSIndexSet * indexes = [NSKeyedUnarchiver unarchiveObjectWithData:
    1192                                 [pasteboard dataForType: TorrentTableViewDataType]];
     1193                                [pasteboard dataForType: TORRENT_TABLE_VIEW_DATA_TYPE]];
    11931194       
    11941195        //move torrent in array
Note: See TracChangeset for help on using the changeset viewer.