aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <dmoagx@users.noreply.github.com>2018-05-13 19:43:44 +0200
committerMax <dmoagx@users.noreply.github.com>2018-05-13 19:43:44 +0200
commite49d33edfb80f7de00b9971240a428cc72829421 (patch)
tree3d074a3354a1a44c9179cfbf2eedb1d27b7bcdfb /Source
parent31a9b3b3510d15a5bb8820629eee20bb1303fa16 (diff)
downloadsequelpro-e49d33edfb80f7de00b9971240a428cc72829421.tar.gz
sequelpro-e49d33edfb80f7de00b9971240a428cc72829421.tar.bz2
sequelpro-e49d33edfb80f7de00b9971240a428cc72829421.zip
Add type info and remove unused ivars
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.h44
-rw-r--r--Source/SPTableContent.m5
2 files changed, 32 insertions, 17 deletions
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h
index 831950fb..1d5390bb 100644
--- a/Source/SPTableContent.h
+++ b/Source/SPTableContent.h
@@ -58,9 +58,9 @@ typedef NS_ENUM(NSInteger, SPTableContentFilterSource) {
@interface SPTableContent : NSObject <NSTableViewDelegate, NSTableViewDataSource, NSComboBoxDataSource, NSComboBoxDelegate, SPDatabaseContentViewDelegate>
{
IBOutlet SPDatabaseDocument *tableDocumentInstance;
- IBOutlet id tablesListInstance;
+ IBOutlet SPTablesList *tablesListInstance;
IBOutlet SPTableData* tableDataInstance;
- IBOutlet id tableSourceInstance;
+ IBOutlet SPTableStructure *tableSourceInstance;
#ifndef SP_CODA
IBOutlet SPTableInfo *tableInfoInstance;
@@ -70,16 +70,13 @@ typedef NS_ENUM(NSInteger, SPTableContentFilterSource) {
IBOutlet SPCopyTable *tableContentView;
IBOutlet NSButton *toggleRuleFilterButton;
- IBOutlet id addButton;
- IBOutlet id duplicateButton;
- IBOutlet id removeButton;
- IBOutlet id reloadButton;
+ IBOutlet NSButton *addButton;
+ IBOutlet NSButton *duplicateButton;
+ IBOutlet NSButton *removeButton;
+ IBOutlet NSButton *reloadButton;
#ifndef SP_CODA
IBOutlet NSButton *multipleLineEditingButton;
IBOutlet NSTextField *countText;
- IBOutlet id limitRowsField;
- IBOutlet id limitRowsButton;
- IBOutlet id limitRowsStepper;
#endif
IBOutlet NSButton *paginationPreviousButton;
@@ -112,15 +109,27 @@ typedef NS_ENUM(NSInteger, SPTableContentFilterSource) {
NSMutableArray *nibObjectsToRelease;
#endif
- NSString *selectedTable, *usedQuery;
+ NSString *selectedTable;
+ NSString *usedQuery;
SPDataStorage *tableValues;
- NSMutableArray *dataColumns, *keys, *oldRow;
- NSUInteger tableRowsCount, previousTableRowsCount;
+ NSMutableArray *dataColumns;
+ NSMutableArray *keys;
+ NSMutableArray *oldRow;
+ NSUInteger tableRowsCount;
+ NSUInteger previousTableRowsCount;
NSNumber *sortCol;
- BOOL isEditingRow, isEditingNewRow, isSavingRow, isDesc, setLimit;
- BOOL isFiltered, isLimited, isInterruptedLoad, maxNumRowsIsEstimate;
+ BOOL isEditingRow;
+ BOOL isEditingNewRow;
+ BOOL isSavingRow;
+ BOOL isDesc;
+ BOOL setLimit;
+ BOOL isFiltered;
+ BOOL isLimited;
+ BOOL isInterruptedLoad;
+ BOOL maxNumRowsIsEstimate;
NSUserDefaults *prefs;
- NSInteger currentlyEditingRow, maxNumRows;
+ NSInteger currentlyEditingRow;
+ NSInteger maxNumRows;
NSUInteger contentPage;
@@ -142,7 +151,10 @@ typedef NS_ENUM(NSInteger, SPTableContentFilterSource) {
#endif
NSTimer *tableLoadTimer;
- NSUInteger tableLoadInterfaceUpdateInterval, tableLoadTimerTicksSinceLastUpdate, tableLoadLastRowCount, tableLoadTargetRowCount;
+ NSUInteger tableLoadInterfaceUpdateInterval;
+ NSUInteger tableLoadTimerTicksSinceLastUpdate;
+ NSUInteger tableLoadLastRowCount;
+ NSUInteger tableLoadTargetRowCount;
NSArray *cqColumnDefinition;
BOOL isFirstChangeInView;
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index a5a1e5be..b27200c0 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -950,6 +950,7 @@ static void *TableContentKVOContext = &TableContentKVOContext;
[theResultStore startDownload];
#ifndef SP_CODA
+#warning private ivar accessed from outside
NSProgressIndicator *dataLoadingIndicator = [tableDocumentInstance valueForKey:@"queryProgressBar"];
#else
NSProgressIndicator *dataLoadingIndicator = [tableDocumentInstance queryProgressBar];
@@ -3325,7 +3326,8 @@ static void *TableContentKVOContext = &TableContentKVOContext;
*/
- (CGFloat) tablesListWidth
{
- return [[[[tableDocumentInstance valueForKeyPath:@"contentViewSplitter"] subviews] objectAtIndex:0] frame].size.width;
+#warning private ivar accessed from outside
+ return [[[[tableDocumentInstance valueForKey:@"contentViewSplitter"] subviews] objectAtIndex:0] frame].size.width;
}
/**
@@ -3524,6 +3526,7 @@ static void *TableContentKVOContext = &TableContentKVOContext;
[tableDataInstance setStatusValue:@"y" forKey:@"RowsCountAccurate"];
#ifndef SP_CODA
[[tableInfoInstance onMainThread] tableChanged:nil];
+#warning private ivar accessed from outside
[[[tableDocumentInstance valueForKey:@"extendedTableInfoInstance"] onMainThread] loadTable:selectedTable];
#endif