aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-09-02 22:58:09 +0000
committerrowanbeentje <rowan@beent.je>2009-09-02 22:58:09 +0000
commit558a543e667d17b624b921317177710fd2407ba6 (patch)
tree7c9fa140f1694b7f8977cb0e2dc37e98ea8481ba /Source/TableContent.m
parente1a704e83e3ac77f01847f532072bb75232430e4 (diff)
downloadsequelpro-558a543e667d17b624b921317177710fd2407ba6.tar.gz
sequelpro-558a543e667d17b624b921317177710fd2407ba6.tar.bz2
sequelpro-558a543e667d17b624b921317177710fd2407ba6.zip
- Replaces uses of the deprecated selectRow:byExtendingSelection: with selectRowIndexes:byExtendingSelection:
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index f796eca6..f08867f7 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -835,7 +835,7 @@
[tableValues addObject:newRow];
[tableContentView reloadData];
- [tableContentView selectRow:[tableContentView numberOfRows]-1 byExtendingSelection:NO];
+ [tableContentView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableContentView numberOfRows]-1] byExtendingSelection:NO];
isEditingRow = YES;
isEditingNewRow = YES;
currentlyEditingRow = [tableContentView selectedRow];
@@ -899,7 +899,7 @@
//select row and go in edit mode
[tableContentView reloadData];
- [tableContentView selectRow:[tableContentView selectedRow]+1 byExtendingSelection:NO];
+ [tableContentView selectRowIndexes:[NSIndexSet indexSetWithIndex:[tableContentView selectedRow]+1] byExtendingSelection:NO];
isEditingRow = YES;
isEditingNewRow = YES;
currentlyEditingRow = [tableContentView selectedRow];
@@ -1446,7 +1446,7 @@
}
// Saving failed - reselect the old row and return failure.
- [tableContentView selectRow:currentlyEditingRow byExtendingSelection:NO];
+ [tableContentView selectRowIndexes:[NSIndexSet indexSetWithIndex:currentlyEditingRow] byExtendingSelection:NO];
isSavingRow = NO;
return NO;
}