【发布时间】:2012-07-11 06:13:44
【问题描述】:
我想将我的程序的启动条目放在系统中,以便每次启动系统时它都会运行。但是如何在可可中做,我不知道,请为此提供帮助。我是可可的新手。
提前致谢
【问题讨论】:
标签: objective-c macos cocoa startup
我想将我的程序的启动条目放在系统中,以便每次启动系统时它都会运行。但是如何在可可中做,我不知道,请为此提供帮助。我是可可的新手。
提前致谢
【问题讨论】:
标签: objective-c macos cocoa startup
您可能想使用来自 github 的类似这个库的东西:https://github.com/Mozketo/LaunchAtLoginController
LaunchAtLoginController *launchController = [[LaunchAtLoginController alloc] init];
[launchController setLaunchAtLogin:YES];
[launchController release];
【讨论】: