From d88a90e5b020fbf11eafbfe09f7b44fa3571e5de Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 3 Oct 2023 04:53:26 -0700 Subject: [PATCH] Fix a typo Notifcation -> Notification Signed-off-by: Christopher Snowhill --- Application/AppController.m | 6 +++--- Application/PlaybackController.h | 8 ++++---- Application/PlaybackController.m | 18 +++++++++--------- Application/PlaybackEventController.m | 8 ++++---- SpectrumViewCG.m | 24 ++++++++++++------------ Visualization/SpectrumViewSK.m | 24 ++++++++++++------------ 6 files changed, 44 insertions(+), 44 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 01f394f51..75a6781e9 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -259,8 +259,8 @@ static AppController *kAppController = nil; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(nodeExpanded:) name:NSOutlineViewItemDidExpandNotification object:outlineView]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(nodeCollapsed:) name:NSOutlineViewItemDidCollapseNotification object:outlineView]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidBeginNotficiation object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidStopNotficiation object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidBeginNotificiation object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidStopNotificiation object:nil]; [self updateDockMenu:nil]; @@ -766,7 +766,7 @@ static AppController *kAppController = nil; BOOL hideItem = NO; - if([[notification name] isEqualToString:CogPlaybackDidStopNotficiation] || !pe || ![pe artist] || [[pe artist] isEqualToString:@""]) + if([[notification name] isEqualToString:CogPlaybackDidStopNotificiation] || !pe || ![pe artist] || [[pe artist] isEqualToString:@""]) hideItem = YES; if(hideItem && [dockMenu indexOfItem:currentArtistItem] == 0) { diff --git a/Application/PlaybackController.h b/Application/PlaybackController.h index 56ad8a66c..186dfb0aa 100644 --- a/Application/PlaybackController.h +++ b/Application/PlaybackController.h @@ -19,10 +19,10 @@ #define DEFAULT_VOLUME_DOWN 5 #define DEFAULT_VOLUME_UP DEFAULT_VOLUME_DOWN -extern NSString *CogPlaybackDidBeginNotficiation; -extern NSString *CogPlaybackDidPauseNotficiation; -extern NSString *CogPlaybackDidResumeNotficiation; -extern NSString *CogPlaybackDidStopNotficiation; +extern NSString *CogPlaybackDidBeginNotificiation; +extern NSString *CogPlaybackDidPauseNotificiation; +extern NSString *CogPlaybackDidResumeNotificiation; +extern NSString *CogPlaybackDidStopNotificiation; extern NSDictionary *makeRGInfo(PlaylistEntry *pe); diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 1fe1a3284..784c9e2b8 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -56,10 +56,10 @@ extern BOOL kAppControllerShuttingDown; #define DEFAULT_SEEK 5 -NSString *CogPlaybackDidBeginNotficiation = @"CogPlaybackDidBeginNotficiation"; -NSString *CogPlaybackDidPauseNotficiation = @"CogPlaybackDidPauseNotficiation"; -NSString *CogPlaybackDidResumeNotficiation = @"CogPlaybackDidResumeNotficiation"; -NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation"; +NSString *CogPlaybackDidBeginNotificiation = @"CogPlaybackDidBeginNotificiation"; +NSString *CogPlaybackDidPauseNotificiation = @"CogPlaybackDidPauseNotificiation"; +NSString *CogPlaybackDidResumeNotificiation = @"CogPlaybackDidResumeNotificiation"; +NSString *CogPlaybackDidStopNotificiation = @"CogPlaybackDidStopNotificiation"; @synthesize playbackStatus; @@ -655,7 +655,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { }); if(pe) { - [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotficiation object:pe]; + [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotificiation object:pe]; } } @@ -674,11 +674,11 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { [self setPosition:0]; [self setSeekable:NO]; // the player stopped, disable the slider - [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidStopNotficiation object:nil]; + [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidStopNotificiation object:nil]; } else // paused { [[FIRCrashlytics crashlytics] log:@"Paused."]; - [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidPauseNotficiation object:nil]; + [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidPauseNotificiation object:nil]; } } else if(status == CogStatusPlaying) { [[FIRCrashlytics crashlytics] log:@"Started playing."]; @@ -688,7 +688,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { [[NSRunLoop currentRunLoop] addTimer:positionTimer forMode:NSRunLoopCommonModes]; } - [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidResumeNotficiation object:nil]; + [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidResumeNotificiation object:nil]; } if(status == CogStatusStopped) { @@ -745,7 +745,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 50 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{ self->playlistController.currentEntry = pe; [self sendMetaData]; - [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotficiation object:pe]; + [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotificiation object:pe]; }); } diff --git a/Application/PlaybackEventController.m b/Application/PlaybackEventController.m index d14cbcd5b..a954f818e 100644 --- a/Application/PlaybackEventController.m +++ b/Application/PlaybackEventController.m @@ -322,19 +322,19 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response - (void)awakeFromNib { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidBegin:) - name:CogPlaybackDidBeginNotficiation + name:CogPlaybackDidBeginNotificiation object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidPause:) - name:CogPlaybackDidPauseNotficiation + name:CogPlaybackDidPauseNotificiation object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidResume:) - name:CogPlaybackDidResumeNotficiation + name:CogPlaybackDidResumeNotificiation object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackDidStop:) - name:CogPlaybackDidStopNotficiation + name:CogPlaybackDidStopNotificiation object:nil]; } diff --git a/SpectrumViewCG.m b/SpectrumViewCG.m index e43787b92..d84192d36 100644 --- a/SpectrumViewCG.m +++ b/SpectrumViewCG.m @@ -15,10 +15,10 @@ static void *kSpectrumViewCGContext = &kSpectrumViewCGContext; -extern NSString *CogPlaybackDidBeginNotficiation; -extern NSString *CogPlaybackDidPauseNotficiation; -extern NSString *CogPlaybackDidResumeNotficiation; -extern NSString *CogPlaybackDidStopNotficiation; +extern NSString *CogPlaybackDidBeginNotificiation; +extern NSString *CogPlaybackDidPauseNotificiation; +extern NSString *CogPlaybackDidResumeNotificiation; +extern NSString *CogPlaybackDidStopNotificiation; @interface SpectrumViewCG () { VisualizationController *visController; @@ -149,19 +149,19 @@ extern NSString *CogPlaybackDidStopNotficiation; object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidBegin:) - name:CogPlaybackDidBeginNotficiation + name:CogPlaybackDidBeginNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidPause:) - name:CogPlaybackDidPauseNotficiation + name:CogPlaybackDidPauseNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidResume:) - name:CogPlaybackDidResumeNotficiation + name:CogPlaybackDidResumeNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidStop:) - name:CogPlaybackDidStopNotficiation + name:CogPlaybackDidStopNotificiation object:nil]; [defaultCenter addObserver:self @@ -193,16 +193,16 @@ extern NSString *CogPlaybackDidStopNotficiation; name:NSSystemColorsDidChangeNotification object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidBeginNotficiation + name:CogPlaybackDidBeginNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidPauseNotficiation + name:CogPlaybackDidPauseNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidResumeNotficiation + name:CogPlaybackDidResumeNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidStopNotficiation + name:CogPlaybackDidStopNotificiation object:nil]; [defaultCenter removeObserver:self diff --git a/Visualization/SpectrumViewSK.m b/Visualization/SpectrumViewSK.m index 4b36b3816..2261390d4 100644 --- a/Visualization/SpectrumViewSK.m +++ b/Visualization/SpectrumViewSK.m @@ -19,10 +19,10 @@ static void *kSpectrumViewSKContext = &kSpectrumViewSKContext; -extern NSString *CogPlaybackDidBeginNotficiation; -extern NSString *CogPlaybackDidPauseNotficiation; -extern NSString *CogPlaybackDidResumeNotficiation; -extern NSString *CogPlaybackDidStopNotficiation; +extern NSString *CogPlaybackDidBeginNotificiation; +extern NSString *CogPlaybackDidPauseNotificiation; +extern NSString *CogPlaybackDidResumeNotificiation; +extern NSString *CogPlaybackDidStopNotificiation; @interface SpectrumViewSK () { VisualizationController *visController; @@ -237,19 +237,19 @@ extern NSString *CogPlaybackDidStopNotficiation; NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter]; [defaultCenter addObserver:self selector:@selector(playbackDidBegin:) - name:CogPlaybackDidBeginNotficiation + name:CogPlaybackDidBeginNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidPause:) - name:CogPlaybackDidPauseNotficiation + name:CogPlaybackDidPauseNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidResume:) - name:CogPlaybackDidResumeNotficiation + name:CogPlaybackDidResumeNotificiation object:nil]; [defaultCenter addObserver:self selector:@selector(playbackDidStop:) - name:CogPlaybackDidStopNotficiation + name:CogPlaybackDidStopNotificiation object:nil]; [defaultCenter addObserver:self @@ -279,16 +279,16 @@ extern NSString *CogPlaybackDidStopNotficiation; NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter]; [defaultCenter removeObserver:self - name:CogPlaybackDidBeginNotficiation + name:CogPlaybackDidBeginNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidPauseNotficiation + name:CogPlaybackDidPauseNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidResumeNotficiation + name:CogPlaybackDidResumeNotificiation object:nil]; [defaultCenter removeObserver:self - name:CogPlaybackDidStopNotficiation + name:CogPlaybackDidStopNotificiation object:nil]; [defaultCenter removeObserver:self