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