Changeset 4219


Ignore:
Timestamp:
Dec 19, 2007, 3:35:23 PM (14 years ago)
Author:
livings124
Message:

use tag instead of represented object for group values in the menu items

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r4191 r4219  
    20662066    Torrent * torrent;
    20672067    while ((torrent = [enumerator nextObject]))
    2068         [torrent setGroupValue: [[sender representedObject] intValue]];
     2068        [torrent setGroupValue: [sender tag]];
    20692069   
    20702070    [self updateUI];
     
    30983098        BOOL checked = NO;
    30993099       
    3100         int index = [[menuItem representedObject] intValue];
     3100        int index = [menuItem tag];
    31013101        NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
    31023102        Torrent * torrent;
  • trunk/macosx/GroupsWindowController.m

    r4218 r4219  
    337337                            keyEquivalent: @""];
    338338    [item setTarget: target];
    339     [item setRepresentedObject: [NSNumber numberWithInt: -1]];
     339    [item setTag: -1];
    340340    [menu addItem: item];
    341341    [item release];
     
    359359        [icon release];
    360360       
    361         [item setRepresentedObject: [dict objectForKey: @"Index"]];
     361        [item setTag: [[dict objectForKey: @"Index"] intValue]];
    362362       
    363363        [menu addItem: item];
Note: See TracChangeset for help on using the changeset viewer.