如何将程序添加到OS X系统菜单栏? [英] How to add my program to the OS X system menu bar?

查看:106
本文介绍了如何将程序添加到OS X系统菜单栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为iTunes创建了一个音量控制器,但我希望该应用程序在OS X系统菜单栏上放置一个图标,并使我的滑块控制器下拉.

I have created a volume controller for iTunes but I would like this app to place an icon on the OS X system menu bar and have my slider controller drop down.

推荐答案

您需要创建一个状态栏文档

通常,您可以通过将Info.plist文件中的LSUIElement键设置为YES来创建一个不露面的后台应用程序,并让该应用程序在启动时创建状态项.

You would normally create a faceless background app by setting the LSUIElement key in your Info.plist file to YES and have the app create the status item on launch.

这篇关于如何将程序添加到OS X系统菜单栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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