]> Dogcows Code - chaz/thecheat/blobdiff - ServerPrefs.m
Remove support of Mac OS X 10.3 and earlier system, change codes for Mac OS X 10.7.
[chaz/thecheat] / ServerPrefs.m
index b03421830f2e86fba8c5c52facfa921fa6e4183a..3d2637f7158ef2acbe04d945ae7552eca93d286f 100644 (file)
        // reselect the last item if the selection is now invalid
        len = [[NSApp cheatServer] childCount] - 1;
        if ( [aTableView selectedRow] > len ) {
-               [aTableView selectRow:len byExtendingSelection:NO];
+               [aTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:len] byExtendingSelection:NO];
        }
        [aTableView reloadData];
 }
This page took 0.020586 seconds and 4 git commands to generate.