Permalink
Browse files

Fixed check for wrong selector before calling delegate

  • Loading branch information...
1 parent d82ff13 commit ba1a3324489d5ddec92fc0d6eeab03c5dbe687c7 @myell0w committed Dec 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 MTStatusBarOverlay.m
View
@@ -595,7 +595,7 @@ - (void)postImmediateMessage:(NSString *)message type:(MTMessageType)messageType
[self.messageQueue removeObjectsInArray:clearedMessages];
// call delegate
- if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidHide)] && clearedMessages.count > 0) {
+ if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidClearMessageQueue:)] && clearedMessages.count > 0) {
[self.delegate statusBarOverlayDidClearMessageQueue:clearedMessages];
}
}
@@ -1300,7 +1300,7 @@ - (void)updateUIForMessageType:(MTMessageType)messageType duration:(NSTimeInterv
}
- (void)callDelegateWithNewMessage:(NSString *)newMessage {
- if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidHide)]) {
+ if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidSwitchFromOldMessage:toNewMessage:)]) {
NSString *oldMessage = nil;
if (self.messageHistory.count > 0) {

0 comments on commit ba1a332

Please sign in to comment.