aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2014-06-16 02:28:25 +0100
committerrowanbeentje <rowan@beent.je>2014-06-16 02:28:25 +0100
commit690c2fa83a5a3138bf4aa0fa862565c833b72d2a (patch)
tree799539bb55df6b2c4ff65709fd1add69fcc074ce /Source/SPCopyTable.h
parentae239070319b0a8cacc8b17cdcb245ce29956759 (diff)
downloadsequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.tar.gz
sequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.tar.bz2
sequelpro-690c2fa83a5a3138bf4aa0fa862565c833b72d2a.zip
Add a safety check within [SPCopyTable shouldUseFieldEditorForRow:column:] for use when loading tables, which may improve Issue #1925 and Issue #1902.
Diffstat (limited to 'Source/SPCopyTable.h')
-rw-r--r--Source/SPCopyTable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPCopyTable.h b/Source/SPCopyTable.h
index bb23a9c5..02bc2fb4 100644
--- a/Source/SPCopyTable.h
+++ b/Source/SPCopyTable.h
@@ -183,15 +183,16 @@ extern NSInteger SPEditCopyAsSQL;
- (BOOL)isCellComplex;
/*!
- @method shouldUseFieldEditorForRow:column:
+ @method shouldUseFieldEditorForRow:column:useLock:
@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)
+ @param dataLock An optional pthread_mutex_t lock to use when checking the data
@result YES if sheet editing should be used, NO otherwise.
*/
-- (BOOL)shouldUseFieldEditorForRow:(NSUInteger)rowIndex column:(NSUInteger)colIndex;
+- (BOOL)shouldUseFieldEditorForRow:(NSUInteger)rowIndex column:(NSUInteger)colIndex checkWithLock:(pthread_mutex_t *)dataLock;
- (IBAction)executeBundleItemForDataTable:(id)sender;