X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/671a785b0d869478451bc428ac4e4bf3415253b4..HEAD:/ITStatusItem.h diff --git a/ITStatusItem.h b/ITStatusItem.h old mode 100755 new mode 100644 index 904e962..627a380 --- a/ITStatusItem.h +++ b/ITStatusItem.h @@ -1,18 +1,33 @@ -// -// ITStatusItem.h -// iThinkAppKit -// -// Created by Joseph Spiros on Fri Dec 06 2002. -// Copyright (c) 2002 iThink Software. All rights reserved. -// +/* + * ITKit + * ITStatusItem.h + * + * NSStatusItem subclass which attempts to approximate NSMenuExtra's + * appearance and functionality. + * + * Copyright (c) 2005 iThink Software + * + */ -#import +#import +@class ITStatusItem; + +@protocol ITStatusItemMenuProvider +- (NSMenu *)menuForStatusItem:(ITStatusItem *)statusItem; +@end @interface ITStatusItem : NSStatusItem { - NSStatusItem *statusItem; + id _menuProvider; + NSMenu *_menuProxy; } -- (NSStatusItem*) statusItem; -- (NSImage*) alternateImage; -- (void) setAlternateImage:(NSImage*)image; -@end + +- (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length; + +- (NSImage *)alternateImage; +- (void)setAlternateImage:(NSImage *)image; + +- (id )menuProvider; +- (void)setMenuProvider:(id )provider; + +@end \ No newline at end of file