diff options
Diffstat (limited to 'Source/SPExtendedTableInfo.m')
-rw-r--r-- | Source/SPExtendedTableInfo.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m index edb3fd23..6f4f9ae8 100644 --- a/Source/SPExtendedTableInfo.m +++ b/Source/SPExtendedTableInfo.m @@ -49,6 +49,7 @@ static NSString *SPUpdateTableTypeNewType = @"SPUpdateTableTypeNewType"; @interface SPExtendedTableInfo () +- (void)_updateDisplayedInfo:(NSNotification *)aNotification; - (void)_changeCurrentTableTypeFrom:(NSString *)currentType to:(NSString *)newType; - (NSString *)_formatValueWithKey:(NSString *)key inDictionary:(NSDictionary *)statusDict; @@ -72,6 +73,10 @@ static NSString *SPUpdateTableTypeNewType = @"SPUpdateTableTypeNewType"; selector:@selector(endDocumentTaskForTab:) name:SPDocumentTaskEndNotification object:tableDocumentInstance]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_updateDisplayedInfo:) + name:SPTableInfoChangedNotification + object:tableDocumentInstance]; } #pragma mark - @@ -617,6 +622,14 @@ static NSString *SPUpdateTableTypeNewType = @"SPUpdateTableTypeNewType"; #pragma mark Private API /** + * Trigger an update to a display in reaction to changes in external data + */ +- (void)_updateDisplayedInfo:(NSNotification *)aNotification +{ + [self loadTable:selectedTable]; +} + +/** * Changes the current table's storage engine to the supplied type. */ - (void)_changeCurrentTableTypeFrom:(NSString *)currentType to:(NSString *)newType |