问题描述
我在 Mac App Store 中看到过许多应用程序,它们都是简单的应用程序,它们会在菜单栏中向您显示 Facebook 或 Google 阅读器的移动版本.
我不知道从哪里开始,所以我问你们.
我希望应用在按下工具栏图标时在下拉样式窗口(来自菜单栏)中显示移动版本的 FaceBook.任何有关如何开始的链接将不胜感激.
我认为 NSStatusItem 正是您要找的.p>
查看以下教程:
创建独立的 StatusItem 菜单
另一个不错的示例项目:
使用 MAAttachedWindow 和 NSStatusItem
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.
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.
I think NSStatusItem is what you're looking for.
Check the following tutorial:
Creating a Standalone StatusItem Menu
Another nice example project:
Using MAAttachedWindow with an NSStatusItem
这篇关于Mac 菜单栏教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!