X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7351b185cf3f32e36745ad0107b2e27a4634127c..abdb0712ef9e62ff570497eb0e7072eb92b23722:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h old mode 100755 new mode 100644 index 2824f9b..4ed0643 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -1,27 +1,36 @@ /* * 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; + NSMenu *_menuProxy; } -- (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