diff options
author | rowanbeentje <rowan@beent.je> | 2008-11-18 01:46:48 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2008-11-18 01:46:48 +0000 |
commit | 862396873ddb3d4017a5ab323ae0be6bded755b8 (patch) | |
tree | 3a956b9e124e6f987c2e57435c097ae3a9a4f97f /TablesList.m | |
parent | 4db467b061a83103c78cef1d86405f92e2b13ce2 (diff) | |
download | sequelpro-862396873ddb3d4017a5ab323ae0be6bded755b8.tar.gz sequelpro-862396873ddb3d4017a5ab323ae0be6bded755b8.tar.bz2 sequelpro-862396873ddb3d4017a5ab323ae0be6bded755b8.zip |
Add support for marking the content for a required refresh on structure changes. Implemented by adding a method to TablesList (setContentRequiresReload) and using it when modifying the tble structure, thus only refreshing if the content is actually viewed again.
Diffstat (limited to 'TablesList.m')
-rw-r--r-- | TablesList.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TablesList.m b/TablesList.m index 0cad02c5..270cd49b 100644 --- a/TablesList.m +++ b/TablesList.m @@ -341,6 +341,16 @@ returns YES if table status has already been loaded return statusLoaded; } +#pragma mark Setter methods + +/* +Mark the content table for refresh when it's next switched to +*/ +- (void)setContentRequiresReload +{ + contentLoaded = NO; +} + #pragma mark Datasource methods - (int)numberOfRowsInTableView:(NSTableView *)aTableView |