X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7a218424c6a92eb4979564a7260f862edd46052d..HEAD:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h index f2f6070..627a380 100644 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -5,17 +5,21 @@ * NSStatusItem subclass which attempts to approximate NSMenuExtra's * appearance and functionality. * - * Copyright (c) 2005 by iThink Software. - * All Rights Reserved. - * - * $Id$ + * Copyright (c) 2005 iThink Software * */ #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 +27,7 @@ - (NSImage *)alternateImage; - (void)setAlternateImage:(NSImage *)image; +- (id )menuProvider; +- (void)setMenuProvider:(id )provider; + @end \ No newline at end of file