Replace awakeFromNib with windowDidLoad

awakeFromNib should never be used; proper window loading methods
from the window controller should be used instead. awakeFromNib
can also be called multiple times in certain scenarios.
This commit is contained in:
Zorg committed 2015-09-18 13:57:50 -04:00
1 parent 92c41cbb34
commit 2c5d5fb40d
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@
- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; }
- (void)awakeFromNib
- (void)windowDidLoad
{
if ([self.host isBackgroundApplication]) {
[[self window] setLevel:NSFloatingWindowLevel];
+1 -1
View File
@@ -178,7 +178,7 @@
return allowAutoUpdates;
}
- (void)awakeFromNib
- (void)windowDidLoad
{
BOOL showReleaseNotes = [self showsReleaseNotes];
+1 -1
View File
@@ -78,7 +78,7 @@
- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; }
- (void)awakeFromNib
- (void)windowDidLoad
{
if (![self shouldAskAboutProfile])
{