git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing the use of private CoreGraphics APIs to draw shadows, and replacing with...
[ITKit.git]
/
ITStatusItem.h
diff --git
a/ITStatusItem.h
b/ITStatusItem.h
index
f2f6070
..
627a380
100644
(file)
--- a/
ITStatusItem.h
+++ b/
ITStatusItem.h
@@
-5,17
+5,21
@@
* NSStatusItem subclass which attempts to approximate NSMenuExtra's
* appearance and functionality.
*
* 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>
*
*/
#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;
}
- (id)initWithStatusBar:(NSStatusBar *)statusBar withLength:(float)length;
@@
-23,4
+27,7
@@
- (NSImage *)alternateImage;
- (void)setAlternateImage:(NSImage *)image;
- (NSImage *)alternateImage;
- (void)setAlternateImage:(NSImage *)image;
+- (id <ITStatusItemMenuProvider>)menuProvider;
+- (void)setMenuProvider:(id <ITStatusItemMenuProvider>)provider;
+
@end
\ No newline at end of file
@end
\ No newline at end of file