O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSStatusBar — Mac OS X 10.0

Synopsis

This class defines the interface for the system status bar that appears on the right end of the main menu bar. The individual items in the status bar are instances of the class NSStatusItem. Clients obtain the shared system status bar instance using the class method systemStatusBar. Status items are created and added to a status bar by invoking the method statusItemWithLength:, and applications can remove status items that they have created by invoking removeStatusItem:.

image with no caption

@interface NSStatusBar : NSObject
                                  // Class Methods
   + (NSStatusBar*)systemStatusBar;
                                  // Instance Methods
   - (BOOL) isVertical;
   - (float) thickness;
   - (void)removeStatusItem:(NSStatusItem*)item;
   - (NSStatusItem*)statusItemWithLength:(float)length;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required