aboutsummaryrefslogtreecommitdiffstats
path: root/WorldStatusController.m
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2009-10-22 17:06:07 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2009-10-22 17:06:21 -0400
commitc3cfc61725255a1feb1bcb76be214b1dab15eb5d (patch)
tree6c21cdd64fec9eb3b327a28bc489b08fc0d0a8c0 /WorldStatusController.m
parent4f728be46b39caa908a1000b6f903fc4c4cb5ef4 (diff)
downloadmoxie-c3cfc61725255a1feb1bcb76be214b1dab15eb5d.tar.gz
moxie-c3cfc61725255a1feb1bcb76be214b1dab15eb5d.zip
Update for 10.6
Diffstat (limited to 'WorldStatusController.m')
-rw-r--r--WorldStatusController.m5
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];
}