Initial revision
[ITKit.git] / ITStatusItem.m
1 //
2 //  ITStatusItem.m
3 //  iThinkAppKit
4 //
5 //  Created by Joseph Spiros on Fri Dec 06 2002.
6 //  Copyright (c) 2002 iThink Software. All rights reserved.
7 //
8
9 #import "ITStatusItem.h"
10
11
12 @implementation ITStatusItem
13
14 - (id)initWithStatusBar:(NSStatusBar*)statusBar withLength:(float)length {
15     statusItem = [statusBar statusItemWithLength:length];
16 }
17
18 - (NSStatusItem*) statusItem {
19     return statusItem;
20 }
21
22 - (NSImage*) alternateImage {
23     return [[statusItem _button] alternateImage];
24 }
25
26 - (void) setAlternateImage:(NSImage*)image {
27     if ([[[[statusItem _button] cell] super] type] != 0) {
28         [[[statusItem _button] cell] setType:0];
29     }
30     [[statusItem _button] setAlternateImage:image];
31 }
32
33 @end