diff options
author | rowanbeentje <rowan@beent.je> | 2009-03-05 01:02:53 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-03-05 01:02:53 +0000 |
commit | f0830d96692e40eaa45bd5b9ae1322a391d905a7 (patch) | |
tree | a62b6ccc9d96deb6984fada3a149db3613dd8262 /Source/TableSource.h | |
parent | 04f87a1710d1379589c7e4d7e84cfbb9908ae468 (diff) | |
download | sequelpro-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.h | 3 |
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; |