aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2018-01-17 20:21:07 +0100
committerMax <post@wickenrode.com>2018-01-17 20:21:07 +0100
commitef21bc5c3749756c21804d1592f3a3fe2faf7cab (patch)
treec52405f115536abcbd9861c40f740521d40bf6d8 /Source/SPTableContent.m
parent74b18eee1821ec8ec5bd472cd5ddb80eb865c1ed (diff)
downloadsequelpro-ef21bc5c3749756c21804d1592f3a3fe2faf7cab.tar.gz
sequelpro-ef21bc5c3749756c21804d1592f3a3fe2faf7cab.tar.bz2
sequelpro-ef21bc5c3749756c21804d1592f3a3fe2faf7cab.zip
Remove another 2 cases of very strange object notification behavior (code style)
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
*/