X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7351b185cf3f32e36745ad0107b2e27a4634127c..3263678eef57c78d7017185eaa2efb9e644c7f29:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h old mode 100755 new mode 100644 index 2824f9b..7085c78 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -1,27 +1,35 @@ /* * ITKit - * ITStatusItem - * NSStatusItem subclass which reduces suckage + * ITStatusItem.h * - * Original Author : Joseph Spiros - * Responsibility : Matt Judy - * Responsibility : Joseph Spiros + * NSStatusItem subclass which attempts to approximate NSMenuExtra's + * appearance and functionality. * - * Copyright (c) 2002 iThink Software. - * All Rights Reserved + * Copyright (c) 2005 by iThink Software. + * All Rights Reserved. + * + * $Id$ * */ #import +@class ITStatusItem; + +@protocol ITStatusItemMenuProvider +- (NSMenu *)menuForStatusItem:(ITStatusItem *)statusItem; +@end -@interface ITStatusItem : NSStatusItem -{ +@interface ITStatusItem : NSStatusItem { + id _menuProvider; } -- (id)initWithStatusBar:(NSStatusBar*)statusBar withLength:(float)length; +- (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length; -- (NSImage*) alternateImage; -- (void) setAlternateImage:(NSImage*)image; +- (NSImage *)alternateImage; +- (void)setAlternateImage:(NSImage *)image; -@end +- (id )menuProvider; +- (void)setMenuProvider:(id )provider; + +@end \ No newline at end of file