Fix a typo

Notifcation -> Notification

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-10-03 04:53:26 -07:00
parent 122b6d6a6d
commit d88a90e5b0
No known key found for this signature in database
6 changed files with 44 additions and 44 deletions

View file

@ -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(nodeExpanded:) name:NSOutlineViewItemDidExpandNotification object:outlineView];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(nodeCollapsed:) name:NSOutlineViewItemDidCollapseNotification 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:CogPlaybackDidBeginNotificiation object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidStopNotficiation object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDockMenu:) name:CogPlaybackDidStopNotificiation object:nil];
[self updateDockMenu:nil]; [self updateDockMenu:nil];
@ -766,7 +766,7 @@ static AppController *kAppController = nil;
BOOL hideItem = NO; 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; hideItem = YES;
if(hideItem && [dockMenu indexOfItem:currentArtistItem] == 0) { if(hideItem && [dockMenu indexOfItem:currentArtistItem] == 0) {

View file

@ -19,10 +19,10 @@
#define DEFAULT_VOLUME_DOWN 5 #define DEFAULT_VOLUME_DOWN 5
#define DEFAULT_VOLUME_UP DEFAULT_VOLUME_DOWN #define DEFAULT_VOLUME_UP DEFAULT_VOLUME_DOWN
extern NSString *CogPlaybackDidBeginNotficiation; extern NSString *CogPlaybackDidBeginNotificiation;
extern NSString *CogPlaybackDidPauseNotficiation; extern NSString *CogPlaybackDidPauseNotificiation;
extern NSString *CogPlaybackDidResumeNotficiation; extern NSString *CogPlaybackDidResumeNotificiation;
extern NSString *CogPlaybackDidStopNotficiation; extern NSString *CogPlaybackDidStopNotificiation;
extern NSDictionary *makeRGInfo(PlaylistEntry *pe); extern NSDictionary *makeRGInfo(PlaylistEntry *pe);

View file

@ -56,10 +56,10 @@ extern BOOL kAppControllerShuttingDown;
#define DEFAULT_SEEK 5 #define DEFAULT_SEEK 5
NSString *CogPlaybackDidBeginNotficiation = @"CogPlaybackDidBeginNotficiation"; NSString *CogPlaybackDidBeginNotificiation = @"CogPlaybackDidBeginNotificiation";
NSString *CogPlaybackDidPauseNotficiation = @"CogPlaybackDidPauseNotficiation"; NSString *CogPlaybackDidPauseNotificiation = @"CogPlaybackDidPauseNotificiation";
NSString *CogPlaybackDidResumeNotficiation = @"CogPlaybackDidResumeNotficiation"; NSString *CogPlaybackDidResumeNotificiation = @"CogPlaybackDidResumeNotificiation";
NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation"; NSString *CogPlaybackDidStopNotificiation = @"CogPlaybackDidStopNotificiation";
@synthesize playbackStatus; @synthesize playbackStatus;
@ -655,7 +655,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
}); });
if(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 setPosition:0];
[self setSeekable:NO]; // the player stopped, disable the slider [self setSeekable:NO]; // the player stopped, disable the slider
[[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidStopNotficiation object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidStopNotificiation object:nil];
} else // paused } else // paused
{ {
[[FIRCrashlytics crashlytics] log:@"Paused."]; [[FIRCrashlytics crashlytics] log:@"Paused."];
[[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidPauseNotficiation object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidPauseNotificiation object:nil];
} }
} else if(status == CogStatusPlaying) { } else if(status == CogStatusPlaying) {
[[FIRCrashlytics crashlytics] log:@"Started playing."]; [[FIRCrashlytics crashlytics] log:@"Started playing."];
@ -688,7 +688,7 @@ NSDictionary *makeRGInfo(PlaylistEntry *pe) {
[[NSRunLoop currentRunLoop] addTimer:positionTimer forMode:NSRunLoopCommonModes]; [[NSRunLoop currentRunLoop] addTimer:positionTimer forMode:NSRunLoopCommonModes];
} }
[[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidResumeNotficiation object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidResumeNotificiation object:nil];
} }
if(status == CogStatusStopped) { 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(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 50 * NSEC_PER_MSEC), dispatch_get_main_queue(), ^{
self->playlistController.currentEntry = pe; self->playlistController.currentEntry = pe;
[self sendMetaData]; [self sendMetaData];
[[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotficiation object:pe]; [[NSNotificationCenter defaultCenter] postNotificationName:CogPlaybackDidBeginNotificiation object:pe];
}); });
} }

View file

@ -322,19 +322,19 @@ didReceiveNotificationResponse:(UNNotificationResponse *)response
- (void)awakeFromNib { - (void)awakeFromNib {
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playbackDidBegin:) selector:@selector(playbackDidBegin:)
name:CogPlaybackDidBeginNotficiation name:CogPlaybackDidBeginNotificiation
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playbackDidPause:) selector:@selector(playbackDidPause:)
name:CogPlaybackDidPauseNotficiation name:CogPlaybackDidPauseNotificiation
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playbackDidResume:) selector:@selector(playbackDidResume:)
name:CogPlaybackDidResumeNotficiation name:CogPlaybackDidResumeNotificiation
object:nil]; object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(playbackDidStop:) selector:@selector(playbackDidStop:)
name:CogPlaybackDidStopNotficiation name:CogPlaybackDidStopNotificiation
object:nil]; object:nil];
} }

View file

@ -15,10 +15,10 @@
static void *kSpectrumViewCGContext = &kSpectrumViewCGContext; static void *kSpectrumViewCGContext = &kSpectrumViewCGContext;
extern NSString *CogPlaybackDidBeginNotficiation; extern NSString *CogPlaybackDidBeginNotificiation;
extern NSString *CogPlaybackDidPauseNotficiation; extern NSString *CogPlaybackDidPauseNotificiation;
extern NSString *CogPlaybackDidResumeNotficiation; extern NSString *CogPlaybackDidResumeNotificiation;
extern NSString *CogPlaybackDidStopNotficiation; extern NSString *CogPlaybackDidStopNotificiation;
@interface SpectrumViewCG () { @interface SpectrumViewCG () {
VisualizationController *visController; VisualizationController *visController;
@ -149,19 +149,19 @@ extern NSString *CogPlaybackDidStopNotficiation;
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidBegin:) selector:@selector(playbackDidBegin:)
name:CogPlaybackDidBeginNotficiation name:CogPlaybackDidBeginNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidPause:) selector:@selector(playbackDidPause:)
name:CogPlaybackDidPauseNotficiation name:CogPlaybackDidPauseNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidResume:) selector:@selector(playbackDidResume:)
name:CogPlaybackDidResumeNotficiation name:CogPlaybackDidResumeNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidStop:) selector:@selector(playbackDidStop:)
name:CogPlaybackDidStopNotficiation name:CogPlaybackDidStopNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
@ -193,16 +193,16 @@ extern NSString *CogPlaybackDidStopNotficiation;
name:NSSystemColorsDidChangeNotification name:NSSystemColorsDidChangeNotification
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidBeginNotficiation name:CogPlaybackDidBeginNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidPauseNotficiation name:CogPlaybackDidPauseNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidResumeNotficiation name:CogPlaybackDidResumeNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidStopNotficiation name:CogPlaybackDidStopNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self

View file

@ -19,10 +19,10 @@
static void *kSpectrumViewSKContext = &kSpectrumViewSKContext; static void *kSpectrumViewSKContext = &kSpectrumViewSKContext;
extern NSString *CogPlaybackDidBeginNotficiation; extern NSString *CogPlaybackDidBeginNotificiation;
extern NSString *CogPlaybackDidPauseNotficiation; extern NSString *CogPlaybackDidPauseNotificiation;
extern NSString *CogPlaybackDidResumeNotficiation; extern NSString *CogPlaybackDidResumeNotificiation;
extern NSString *CogPlaybackDidStopNotficiation; extern NSString *CogPlaybackDidStopNotificiation;
@interface SpectrumViewSK () { @interface SpectrumViewSK () {
VisualizationController *visController; VisualizationController *visController;
@ -237,19 +237,19 @@ extern NSString *CogPlaybackDidStopNotficiation;
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter]; NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidBegin:) selector:@selector(playbackDidBegin:)
name:CogPlaybackDidBeginNotficiation name:CogPlaybackDidBeginNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidPause:) selector:@selector(playbackDidPause:)
name:CogPlaybackDidPauseNotficiation name:CogPlaybackDidPauseNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidResume:) selector:@selector(playbackDidResume:)
name:CogPlaybackDidResumeNotficiation name:CogPlaybackDidResumeNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
selector:@selector(playbackDidStop:) selector:@selector(playbackDidStop:)
name:CogPlaybackDidStopNotficiation name:CogPlaybackDidStopNotificiation
object:nil]; object:nil];
[defaultCenter addObserver:self [defaultCenter addObserver:self
@ -279,16 +279,16 @@ extern NSString *CogPlaybackDidStopNotficiation;
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter]; NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidBeginNotficiation name:CogPlaybackDidBeginNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidPauseNotficiation name:CogPlaybackDidPauseNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidResumeNotficiation name:CogPlaybackDidResumeNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self
name:CogPlaybackDidStopNotficiation name:CogPlaybackDidStopNotificiation
object:nil]; object:nil];
[defaultCenter removeObserver:self [defaultCenter removeObserver:self