Fix a typo
Notifcation -> Notification Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
122b6d6a6d
commit
d88a90e5b0
6 changed files with 44 additions and 44 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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];
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue