Mac菜单栏教程? [英] Mac Menu Bar Tutorial?
问题描述
我在Mac App Store中看到了许多简单的应用程序,它们在菜单栏中显示了FaceBook或Google阅读器的移动版本.
I have seen many apps in the Mac App Store that are simple apps that shows you the mobile version of FaceBook or Google Reader in the menu bar.
我不确定从哪里开始,所以我问你们.
I am not sure where to start though, so I'm asking you guys.
我希望该应用在按下工具栏图标时在下拉样式窗口(来自菜单栏)中显示FaceBook的移动版本.任何有关入门的链接将不胜感激.
I would like the app to display a mobile version of FaceBook in a dropdown style window (coming from the menu bar) when the toolbar icon is pressed. Any links on how to get started will be greatly appreciated.
推荐答案
我认为您正在寻找NSStatusItem.
I think NSStatusItem is what you're looking for.
检查以下教程:
创建独立的StatusItem菜单
Check the following tutorial:
Creating a Standalone StatusItem Menu
另一个不错的示例项目:
将MAAttachedWindow与NSStatusItem一起使用
Another nice example project:
Using MAAttachedWindow with an NSStatusItem
这篇关于Mac菜单栏教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!