diff options
author | rowanbeentje <rowan@beent.je> | 2010-01-30 21:41:18 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-01-30 21:41:18 +0000 |
commit | a776a6437e40837cc2e20a9231e3eb8ef1a73ddf (patch) | |
tree | c82215d051a4529a2608a2880526696ba041c263 /Source/CMCopyTable.h | |
parent | 12b199d998018affa4e358b0d4e26f7cd878f8cd (diff) | |
download | sequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.tar.gz sequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.tar.bz2 sequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.zip |
Rework CMCopyTable copy functionality and related code:
- Reverse the effects of the r1664/r1690 combination, restoring the original link from CMCopyTable to the underlying data source
- Adapt the code to retrieve information from the new SPDataStorage; update SPDataStorage as necessary if underlying data changes
- Refactor and speed up various checks and loops for speed and logic improvements
- Ensure the binary-encoded TEXT data is hex encoded rather than retrieved as "<123ABC 123ABC...>" NSData representations
- Fix some memory leaks
This resolves Issue #533 and the original "Copy as SQL" issue
Diffstat (limited to 'Source/CMCopyTable.h')
-rw-r--r-- | Source/CMCopyTable.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/CMCopyTable.h b/Source/CMCopyTable.h index 95dd0c4b..03fc53cb 100644 --- a/Source/CMCopyTable.h +++ b/Source/CMCopyTable.h @@ -25,6 +25,8 @@ #import <AppKit/AppKit.h> #import "SPTableView.h" +@class SPDataStorage; + /*! @class copyTable @abstract subclassed NSTableView to implement copy & drag-n-drop @@ -39,7 +41,8 @@ id mySQLConnection; // current MySQL connection NSArray* columnDefinitions; // array of NSDictionary containing info about columns NSString* selectedTable; // the name of the current selected table - + SPDataStorage* tableStorage; // the underlying storage array holding the table data + NSUserDefaults *prefs; } @@ -102,7 +105,12 @@ /* * Set all necessary data from the table content view. */ -- (void)setTableInstance:(id)anInstance withColumns:(NSArray *)columnDefs withTableName:(NSString *)aTableName withConnection:(id)aMySqlConnection; +- (void)setTableInstance:(id)anInstance withTableData:(SPDataStorage *)theTableStorage withColumns:(NSArray *)columnDefs withTableName:(NSString *)aTableName withConnection:(id)aMySqlConnection; + +/* + * Update the table storage location if necessary. + */ +- (void)setTableData:(SPDataStorage *)theTableStorage; @end |