- Menu extra
-
A menu extra, menu item, menulet, or status item in Mac OS X is a small icon or sometimes a word that appears at the right of the menu bar. They often provide quick ways to use applications (e.g. iChat) or display information (for example the system clock), or control system-level variables (for example audio volume). There are a number of third party menu items available. Menu extras are similar to items in the Microsoft Windows notification area but are less common.
There are many menu extras supplied with Mac OS X, many independent 3rd-party menu extra applications, and many more supplied with 3rd-party products, most of which are installed from their parent application or system preferences pane, and may remain dormant until they are notified of an event (for example, Inkwell's menu extra will come and go when a graphics tablet is connected and disconnected). 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
.
Menu extras were introduced with Mac OS X v10.1 to replace Dock extras (docklings), and may thus be viewed as another attempt to bring the Control Strip to OS X. There was some controversy when they were originally introduced due to Apple providing an API for third-party developers to use to create menu extras using the NSStatusItem class, while Apple used another private class called NSMenuExtra to develop their own menu extras. Menu extras based on NSMenuExtra automatically included a number of extra features not available to NSStatusItem-based extras, such as drag and drop install/uninstall and the ability to rearrange the extras by depressing the ⌘ key and dragging. The given reason for this is that NSMenuExtra-based menu extras operate within the address space of the SystemUIServer so faulty code in a menu extra could cause instability in a core part of the operating system.In OS 10.4, Spotlight was introduced with a different element that is not a menu extra locked to the right corner of the menu bar.
External links
- Building NSMenuExtra - A Small Tutorial - article written by Rustam Muginov for Cocoa Dev Central
- NSMenuExtra – working with undocumented APIs - in depth and up to date article written by Fabio Gallonetto (last updated 4/02/10)
- NSStatusItem class - Apple developer documentation for NSStatusItem
- OS X menubar items - extensive list of menu extras (last updated 3/20/09)
- Managing OS X Menu Extras - tutorial and video demonstration that shows you how to add/delete and rearrange OS X menu extras
Categories:- Mac OS X user interface
- GUI widgets
Wikimedia Foundation. 2010.