Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git] / ITStatusItem.h
index f2f6070..627a380 100644 (file)
@@ -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 <Cocoa/Cocoa.h>
 
-@interface ITStatusItem : NSStatusItem {
+@class ITStatusItem;
+
+@protocol ITStatusItemMenuProvider
+- (NSMenu *)menuForStatusItem:(ITStatusItem *)statusItem;
+@end
 
+@interface ITStatusItem : NSStatusItem {
+       id <ITStatusItemMenuProvider> _menuProvider;
+       NSMenu *_menuProxy;
 }
 
 - (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length;
@@ -23,4 +27,7 @@
 - (NSImage *)alternateImage;
 - (void)setAlternateImage:(NSImage *)image;
 
+- (id <ITStatusItemMenuProvider>)menuProvider;
+- (void)setMenuProvider:(id <ITStatusItemMenuProvider>)provider;
+
 @end
\ No newline at end of file