-//
-// ITStatusItem.h
-// iThinkAppKit
-//
-// Created by Joseph Spiros on Fri Dec 06 2002.
-// Copyright (c) 2002 iThink Software. All rights reserved.
-//
+/*
+ * ITKit
+ * ITStatusItem
+ * NSStatusItem subclass which reduces suckage
+ *
+ * Original Author : Joseph Spiros <joseph.spiros@ithinksw.com>
+ * Responsibility : Matt Judy <mjudy@ithinksw.com>
+ * Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
+ *
+ * Copyright (c) 2002 iThink Software.
+ * All Rights Reserved
+ *
+ */
-#import <AppKit/AppKit.h>
+/*
+ * This subclass does 3 things:
+ *
+ * 1. Makes the status item smarter about highlighting.
+ * 2. Allows you to set an inverted (alternate) image.
+ * 3. Eliminates the ugly shadow behind a normal status item.
+ *
+ * Note: In order to have the shadow not suck, Apple moves the
+ * image up one pixel. We have chosen not to address this
+ * here, so please adjust your images DOWN one pixel to
+ * compensate for this.
+ *
+ */
+#import <Cocoa/Cocoa.h>
-@interface ITStatusItem : NSStatusItem {
- NSStatusItem *statusItem;
+
+@interface ITStatusItem : NSStatusItem
+{
}
-- (NSStatusItem*) statusItem;
+
+// Use this to create a new retained status item.
+// It will appear in the system status bar, and
+// default to YES for its highlightMode.
+- (id)initWithStatusBar:(NSStatusBar*)statusBar withLength:(float)length;
+
+// These allow you to use an alternate (selected) image for your status item.
- (NSImage*) alternateImage;
- (void) setAlternateImage:(NSImage*)image;
+
@end