diff --git a/Controller.h b/Controller.h index b6336d9..48444cc 100644 --- a/Controller.h +++ b/Controller.h @@ -31,8 +31,6 @@ - (NSString *)pluginURL; - (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent; - (void)unreadMentions:(NSInteger)count; -- (void)mentionsWindowDidExpose:(id)sender; - OSStatus handler(EventHandlerCallRef nextHandler, EventRef theEvent, void* userData); diff --git a/Controller.m b/Controller.m index 127ae65..b93772b 100644 --- a/Controller.m +++ b/Controller.m @@ -129,10 +129,10 @@ } // Mentions window has been visible -- (void)windowDidUpdate:(NSNotification *)notification { +- (void)windowDidBecomeKey:(NSNotification *)notification { if ([notification object] == mentionsViewWindow) { [self unreadMentions:0]; - } + } }