问题
I want to put a startup entry of my program in system so that it run everytime I start the system. But how to do in cocoa, i have no idea,Please provide me help for this.I m new bie in cocoa.
Thanks in advance
回答1:
You probably want to use something like this library from github: https://github.com/Mozketo/LaunchAtLoginController
LaunchAtLoginController *launchController = [[LaunchAtLoginController alloc] init];
[launchController setLaunchAtLogin:YES];
[launchController release];
来源:https://stackoverflow.com/questions/11426595/how-to-make-a-startup-entry-in-cocoa