Revert "💄"

This reverts commit c2c4d03c2d.
This commit is contained in:
Corey Johnson
2013-02-27 10:11:02 -08:00
parent 531946f35c
commit 44680ad50c
4 changed files with 14 additions and 12 deletions

View File

@@ -206,6 +206,14 @@
}
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
if (!_filesOpened && [self shouldOpenFiles]) {
NSString *path = [self.arguments objectForKey:@"path"];
NSNumber *pid = [self.arguments objectForKey:@"wait"] ? [self.arguments objectForKey:@"pid"] : nil;
[self open:path pidToKillWhenWindowCloses:pid];
}
}
- (void)applicationWillFinishLaunching:(NSNotification *)notification {
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
_versionMenuItem.title = [NSString stringWithFormat:@"Version %@", version];
@@ -227,14 +235,6 @@
}
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
if (!_filesOpened && [self shouldOpenFiles]) {
NSString *path = [self.arguments objectForKey:@"path"];
NSNumber *pid = [self.arguments objectForKey:@"wait"] ? [self.arguments objectForKey:@"pid"] : nil;
[self open:path pidToKillWhenWindowCloses:pid];
}
}
- (void)applicationWillTerminate:(NSNotification *)notification {
for (NSWindow *window in [self windows]) {
[window performClose:self];