Created
July 5, 2012 21:34
-
-
Save mike3k/3056612 to your computer and use it in GitHub Desktop.
Launch parent from login helper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)applicationDidFinishLaunching:(NSNotification *)aNotification | |
| { | |
| // Insert code here to initialize your application | |
| NSString *myPath = [[NSBundle mainBundle] bundlePath]; | |
| NSLog(@"Helper app at %@",myPath); | |
| for (int i=0; i<4; ++i) { | |
| myPath = [myPath stringByDeletingLastPathComponent]; | |
| } | |
| NSLog(@"Launching %@",myPath); | |
| [[NSWorkspace sharedWorkspace] launchApplication: myPath]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment