4 * NSStatusItem subclass which reduces suckage
6 * Original Author : Joseph Spiros <joseph.spiros@ithinksw.com>
7 * Responsibility : Matt Judy <mjudy@ithinksw.com>
8 * Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
10 * Copyright (c) 2002 iThink Software.
16 * This subclass does 3 things:
18 * 1. Makes the status item smarter about highlighting.
19 * 2. Allows you to set an inverted (alternate) image.
20 * 3. Eliminates the ugly shadow behind a normal status item.
22 * Note: In order to have the shadow not suck, Apple moves the
23 * image up one pixel. We have chosen not to address this
24 * here, so please adjust your images DOWN one pixel to
25 * compensate for this.
29 #import <Cocoa/Cocoa.h>
32 @interface ITStatusItem : NSStatusItem
36 // Use this to create a new retained status item.
37 // It will appear in the system status bar, and
38 // default to YES for its highlightMode.
39 - (id)initWithStatusBar:(NSStatusBar*)statusBar withLength:(float)length;
41 // These allow you to use an alternate (selected) image for your status item.
42 - (NSImage*) alternateImage;
43 - (void) setAlternateImage:(NSImage*)image;