Ignore:
Timestamp:
Dec 17, 2007, 8:10:51 PM (15 years ago)
Author:
livings124
Message:

sort groups by their order in the table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/GroupsWindowController.m

    r4188 r4189  
    139139}
    140140
     141- (int) orderValueForIndex: (int) index
     142{
     143    if (index != -1)
     144    {
     145        int i;
     146        for (i = 0; i < [fGroups count]; i++)
     147            if (index == [[[fGroups objectAtIndex: i] objectForKey: @"Index"] intValue])
     148                return i;
     149    }
     150    return -1;
     151}
     152
    141153- (NSInteger) numberOfRowsInTableView: (NSTableView *) tableview
    142154{
Note: See TracChangeset for help on using the changeset viewer.