Mac Menu Bar Tutorial? [closed]

♀尐吖头ヾ 提交于 2019-12-18 13:37:02

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/6239399/mac-menu-bar-tutorial

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!