gpt4 book ai didi

objective-c - 如何在 cocoa 中创建启动条目

转载 作者:行者123 更新时间:2023-12-03 17:41:45 24 4
gpt4 key购买 nike

我想在系统中放置一个程序的启动项,以便每次启动系统时它都会运行。但是如何在 cocoa 中做,我不知道,请为此提供帮助。我是 cocoa 的新手。

提前致谢

最佳答案

您可能想使用来自 github 的类似库:https://github.com/Mozketo/LaunchAtLoginController

LaunchAtLoginController *launchController = [[LaunchAtLoginController alloc] init];
[launchController setLaunchAtLogin:YES];
[launchController release];

关于objective-c - 如何在 cocoa 中创建启动条目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11426595/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com