diff options
Diffstat (limited to 'WorldStatusController.m')
-rw-r--r-- | WorldStatusController.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WorldStatusController.m b/WorldStatusController.m index f931055..3fd9dfb 100644 --- a/WorldStatusController.m +++ b/WorldStatusController.m @@ -137,12 +137,15 @@ objectValueForTableColumn: (NSTableColumn *)aTableColumn - (void)selectWorld: (World *)aWorld { NSArray *worlds; + NSIndexSet *rowIndexes; int row; if (aWorld) { worlds = [[NSDocumentController sharedDocumentController] documents]; row = [worlds indexOfObject: aWorld]; - [theTableView selectRow: row byExtendingSelection: NO]; + rowIndexes = [NSIndexSet indexSetWithIndex: row]; + [theTableView selectRowIndexes: rowIndexes + byExtendingSelection: NO]; } else [theTableView deselectAll: self]; } |