X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7a218424c6a92eb4979564a7260f862edd46052d..3263678eef57c78d7017185eaa2efb9e644c7f29:/ITStatusItem.h?ds=sidebyside 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