fadeIn/fadeOut cleanup.
This commit is contained in:
parent
b4efe301a4
commit
8978433aed
@ -42,14 +42,6 @@
|
|||||||
[self replaceFonts:self.window.contentView];
|
[self replaceFonts:self.window.contentView];
|
||||||
prof_rewind( @"replaceFonts" );
|
prof_rewind( @"replaceFonts" );
|
||||||
|
|
||||||
// [[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillBecomeActiveNotification object:nil
|
|
||||||
// queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
|
||||||
// [self fadeIn];
|
|
||||||
// }];
|
|
||||||
// [[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillResignActiveNotification object:nil
|
|
||||||
// queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
|
||||||
// [self fadeOut];
|
|
||||||
// }];
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserverForName:NSWindowDidBecomeKeyNotification object:self.window
|
[[NSNotificationCenter defaultCenter] addObserverForName:NSWindowDidBecomeKeyNotification object:self.window
|
||||||
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
||||||
prof_new( @"didBecomeKey" );
|
prof_new( @"didBecomeKey" );
|
||||||
@ -66,9 +58,7 @@
|
|||||||
}];
|
}];
|
||||||
[[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillResignActiveNotification object:nil
|
[[NSNotificationCenter defaultCenter] addObserverForName:NSApplicationWillResignActiveNotification object:nil
|
||||||
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
||||||
#ifndef DEBUG
|
[self.window close];
|
||||||
[self.window fadeOut];
|
|
||||||
#endif
|
|
||||||
}];
|
}];
|
||||||
[[NSNotificationCenter defaultCenter] addObserverForName:MPSignedInNotification object:nil
|
[[NSNotificationCenter defaultCenter] addObserverForName:MPSignedInNotification object:nil
|
||||||
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
|
||||||
|
Loading…
Reference in New Issue
Block a user