开发者

Add to login items, Objective C [duplicate]

开发者 https://www.devze.com 2023-02-03 08:12 出处:网络
This question already has answers here: 开发者_Go百科 Closed 11 years ago. Possible Duplicate: Register as Login Item with Cocoa?
This question already has answers here: 开发者_Go百科 Closed 11 years ago.

Possible Duplicate:

Register as Login Item with Cocoa?

I am trying add my app in the login items (so it runs on startup) on the Mac. I will hook up a checkbox in my preferences to enable or disable this feature. On Windows you could just place a shortcut in the startup folder or use the registry, but how do you do it on the Mac?


apple's ux expects the user to use the integrated functionality of the system, provided in system preferences (if you have a daemon/agent, that's different).

so, you should generally follow the user's expectation (it's the mac way) and provide them with a message to add it to their startup items, and why it's important.

0

精彩评论

暂无评论...
验证码 换一张
取 消