You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
544 B
20 lines
544 B
// Copyright © 2015 Abhishek Banthia |
|
|
|
#import "AppDelegate.h" |
|
|
|
@interface AppDelegate () |
|
|
|
@end |
|
|
|
@implementation AppDelegate |
|
|
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { |
|
NSArray *pathComponents = [[[NSBundle mainBundle] bundlePath] pathComponents]; |
|
pathComponents = [pathComponents subarrayWithRange:NSMakeRange(0, [pathComponents count] - 4)]; |
|
NSString *path = [NSString pathWithComponents:pathComponents]; |
|
[[NSWorkspace sharedWorkspace] launchApplication:path]; |
|
[NSApp terminate:nil]; |
|
} |
|
|
|
|
|
@end
|
|
|