aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-03-05 01:02:53 +0000
committerrowanbeentje <rowan@beent.je>2009-03-05 01:02:53 +0000
commitf0830d96692e40eaa45bd5b9ae1322a391d905a7 (patch)
treea62b6ccc9d96deb6984fada3a149db3613dd8262 /Source/TableSource.h
parent04f87a1710d1379589c7e4d7e84cfbb9908ae468 (diff)
downloadsequelpro-f0830d96692e40eaa45bd5b9ae1322a391d905a7.tar.gz
sequelpro-f0830d96692e40eaa45bd5b9ae1322a391d905a7.tar.bz2
sequelpro-f0830d96692e40eaa45bd5b9ae1322a391d905a7.zip
Improves the table structure view to only save a row when properly deselected, and automatically reselecting the row for re-edit on error - resolves Issue #74.
Diffstat (limited to 'Source/TableSource.h')
-rw-r--r--Source/TableSource.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TableSource.h b/Source/TableSource.h
index 9cbedba1..4b15bc6f 100644
--- a/Source/TableSource.h
+++ b/Source/TableSource.h
@@ -60,6 +60,7 @@
NSMutableDictionary *oldRow, *enumFields;
NSDictionary *defaultValues;
BOOL isEditingRow, isEditingNewRow, alertSheetOpened;
+ int currentlyEditingRow;
NSUserDefaults *prefs;
}
@@ -112,7 +113,7 @@
- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation:(NSTableViewDropOperation)operation;
//tableView delegate methods
-- (BOOL)selectionShouldChangeInTableView:(NSTableView *)aTableView;
+- (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command;
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;