开发者

How to get Icons at the top of my Mac Screen

开发者 https://www.devze.com 2023-03-03 23:32 出处:网络
On the very top of my Mac, there is a bar which has my battery percentage, the date and time, the volume, etc. Th开发者_如何转开发ere is also a dropbox folder. How can I create something that gets thr

On the very top of my Mac, there is a bar which has my battery percentage, the date and time, the volume, etc. Th开发者_如何转开发ere is also a dropbox folder. How can I create something that gets thrown up there? I'd like to put a few shortcuts in that menu bar. Is there a way to do it?


That bar is the equivalent to the system notification bar on Windows. You want to place your shortcuts on the dock (normally located at the bottom of your screen). You do this by drag and dropping.

While OS X provides no centralized tool to enable or configure menu extras, some of them can be rearranged and dragged off the menubar while depressing the ⌘ key. Also, all Apple-supplied menu extras can be found in the folder /System/Library/CoreServices/Menu Extras.

From Wikipedia

However, if you are determined to put your shortcuts on the bar, here is how to create menu extras

Alternatively, there are some free apps already created for this purpose. HimmelBar - Free, XMenu - Free, and MoofMenu - $5


You want to use the NSStatusBarItem class (see also the NSStatusBar class which represents the menu bar itself.)

Note that icons/menus created with this API do not "mix and match" with the OS-provided ones, but rather are aligned to the left of them and cannot be dragged by the user. Still, it's good enough for most uses.

0

精彩评论

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