aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-10-05 00:39:05 +0000
committerrowanbeentje <rowan@beent.je>2011-10-05 00:39:05 +0000
commit31f17d3c4b1be994b647c133196c82c11db4328f (patch)
tree0f6a50f5b86fe912b6f0e325a89726279a2e3f44 /Source/SPCopyTable.h
parentc9aad8326e53f9544bc10e9bae6bb2a7697cbffa (diff)
downloadsequelpro-31f17d3c4b1be994b647c133196c82c11db4328f.tar.gz
sequelpro-31f17d3c4b1be994b647c133196c82c11db4328f.tar.bz2
sequelpro-31f17d3c4b1be994b647c133196c82c11db4328f.zip
- Rework table data saving to ensure that cells that should be edited via the edit sheet aren't then overwritten by the cell value, potentially causing data truncation in 10.5. This addresses Issue 1196.
- Consolidate field editing in sheet logic
Diffstat (limited to 'Source/SPCopyTable.h')
-rw-r--r--Source/SPCopyTable.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPCopyTable.h b/Source/SPCopyTable.h
index 498ba48c..6009e5d1 100644
--- a/Source/SPCopyTable.h
+++ b/Source/SPCopyTable.h
@@ -174,6 +174,17 @@ extern NSInteger SPEditCopyAsSQL;
- (BOOL)isCellEditingMode;
- (BOOL)isCellComplex;
+/*!
+ @method shouldUseFieldEditorForRow:column:
+ @abstract Determine whether to trigger sheet editing or in-cell editing for a cell
+ @discussion Checks the column data type, and the cell contents if necessary, to check
+ the most appropriate editing type.
+ @param rowIndex The row in the table the cell is present in
+ @param colIndex The *original* column in the table the cell is present in (ie pre-reordering)
+ @result YES if sheet editing should be used, NO otherwise.
+*/
+- (BOOL)shouldUseFieldEditorForRow:(NSUInteger)rowIndex column:(NSUInteger)colIndex;
+
- (IBAction)executeBundleItemForDataTable:(id)sender;
- (void)selectTableRows:(NSArray*)rowIndices;