X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7a218424c6a92eb4979564a7260f862edd46052d..abdb0712ef9e62ff570497eb0e7072eb92b23722:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h index f2f6070..4ed0643 100644 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -14,8 +14,15 @@ #import -@interface ITStatusItem : NSStatusItem { +@class ITStatusItem; + +@protocol ITStatusItemMenuProvider +- (NSMenu *)menuForStatusItem:(ITStatusItem *)statusItem; +@end +@interface ITStatusItem : NSStatusItem { + id _menuProvider; + NSMenu *_menuProxy; } - (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length; @@ -23,4 +30,7 @@ - (NSImage *)alternateImage; - (void)setAlternateImage:(NSImage *)image; +- (id )menuProvider; +- (void)setMenuProvider:(id )provider; + @end \ No newline at end of file