aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-09-18 18:01:20 +0000
committerrowanbeentje <rowan@beent.je>2010-09-18 18:01:20 +0000
commit7437f0325133123acaaabd844be3d1f2701418df (patch)
treecc95f89a26b0cc37c54abd714c511c631e87bbf4 /Source/SPTableStructure.m
parent50c324b28583355740199c8c22a5c4d8bd63c050 (diff)
downloadsequelpro-7437f0325133123acaaabd844be3d1f2701418df.tar.gz
sequelpro-7437f0325133123acaaabd844be3d1f2701418df.tar.bz2
sequelpro-7437f0325133123acaaabd844be3d1f2701418df.zip
- Remove a number of invalid [NSTableView makeFirstResponder] calls that had crept into the source, replacing with the correct [NSWindow makeFirstResponder:NSTableView]. This fixes a number of exceptions.
- Update localisable strings.
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r--Source/SPTableStructure.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index a5aa45af..a0e80306 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -629,7 +629,7 @@
isEditingRow = NO;
[tableSourceView reloadData];
currentlyEditingRow = -1;
- [tableSourceView makeFirstResponder];
+ [[tableDocumentInstance parentWindow] makeFirstResponder:tableSourceView];
return YES;
}
@@ -1710,7 +1710,7 @@ would result in a position change.
[[control window] makeFirstResponder:control];
[self addRowToDB];
[tableSourceView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
- [tableSourceView makeFirstResponder];
+ [[tableDocumentInstance parentWindow] makeFirstResponder:tableSourceView];
return YES;
}
@@ -1913,7 +1913,7 @@ would result in a position change.
[tableDocumentInstance endTask];
// Preserve focus on table for keyboard navigation
- [tableSourceView makeFirstResponder];
+ [[tableDocumentInstance parentWindow] makeFirstResponder:tableSourceView];
[pool drain];
}