How to make a startup entry in cocoa

天涯浪子 提交于 2019-12-11 18:43:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!