X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/671a785b0d869478451bc428ac4e4bf3415253b4..3263678eef57c78d7017185eaa2efb9e644c7f29:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h old mode 100755 new mode 100644 index 904e962..7085c78 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -1,18 +1,35 @@ -// -// ITStatusItem.h -// iThinkAppKit -// -// Created by Joseph Spiros on Fri Dec 06 2002. -// Copyright (c) 2002 iThink Software. All rights reserved. -// +/* + * ITKit + * ITStatusItem.h + * + * NSStatusItem subclass which attempts to approximate NSMenuExtra's + * appearance and functionality. + * + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ + * + */ -#import +#import +@class ITStatusItem; + +@protocol ITStatusItemMenuProvider +- (NSMenu *)menuForStatusItem:(ITStatusItem *)statusItem; +@end @interface ITStatusItem : NSStatusItem { - NSStatusItem *statusItem; + id _menuProvider; } -- (NSStatusItem*) statusItem; -- (NSImage*) alternateImage; -- (void) setAlternateImage:(NSImage*)image; -@end + +- (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length; + +- (NSImage *)alternateImage; +- (void)setAlternateImage:(NSImage *)image; + +- (id )menuProvider; +- (void)setMenuProvider:(id )provider; + +@end \ No newline at end of file