9. Status Items
“Should? Will. Should? Will. Should? Will. Did!”
—quote based on Cocoa delegate methods
This chapter discusses those little black and white icons on the right side of the menu bar as displayed in Figure 9.1. Before we assign these items a real name, let's make something perfectly clear: They are not all created equal. Those created by Apple that can be command dragged to swap locations and added simply by dropping a bundle on the menu bar are called NSMenuExtra
s. However, the NSMenuExtra
class is a private API, so, as developers who do not work for Apple, we need to create NSStatusItems
instead.
Also, Apple says status items are reserved for Apple's use only ...
Get Mac OS® X Advanced Development Techniques now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.