aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index fda32232..27207fca 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -83,6 +83,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
- (BOOL)cancelRowEditing;
- (void)documentWillClose:(NSNotification *)notification;
+- (void)contentFiltersHaveBeenUpdated:(NSNotification *)notification;
@end
@@ -305,6 +306,10 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
selector:@selector(documentWillClose:)
name:SPDocumentWillCloseNotification
object:tableDocumentInstance];
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(contentFiltersHaveBeenUpdated:)
+ name:SPContentFiltersHaveBeenUpdatedNotification
+ object:nil];
}
#pragma mark -
@@ -2595,6 +2600,11 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
[linkPool drain];
}
+- (void)contentFiltersHaveBeenUpdated:(NSNotification *)notification
+{
+ [self setCompareTypes:nil];
+}
+
/**
* Sets the compare types for the filter and the appropriate formatter for the textField
*/