如何在系统启动时启动应用程序? (Mac OSX,Cocoa) [英] How do I launch an application on system startup? (Mac OSX, Cocoa)

查看:125
本文介绍了如何在系统启动时启动应用程序? (Mac OSX,Cocoa)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个只在工具栏(w /时间/日期,聚光灯等)运行的程序,我想在偏好设置中允许用户选择是否在系统启动时启动我的应用程序或不。我目前失去了在哪里找到一些文档。任何链接或短代码片段将不胜感激。提前感谢!

I have a program that runs only in the toolbar (w/ time/date, spotlight, etc.) and I want to put an item in the preferences to allow the user to select whether to start my application on the system startup or not. I'm currently lost on where to find some documentation on this. Any links or short code snippets would be much appreciated. Thanks in advance!

推荐答案

您需要将应用程式新增至登入项目。

You need to add the app to login items.

请参阅系统启动编程主题:自定义登录和注销

这篇关于如何在系统启动时启动应用程序? (Mac OSX,Cocoa)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆