git.ithinksw.org
/
ITKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enabling garbage collection support.
[ITKit.git]
/
ITStatusItem.h
diff --git
a/ITStatusItem.h
b/ITStatusItem.h
old mode 100755
(executable)
new mode 100644
(file)
index
2824f9b
..
627a380
--- a/
ITStatusItem.h
+++ b/
ITStatusItem.h
@@
-1,27
+1,33
@@
/*
* ITKit
/*
* ITKit
- * ITStatusItem
- * NSStatusItem subclass which reduces suckage
+ * ITStatusItem.h
*
*
- * Original Author : Joseph Spiros <joseph.spiros@ithinksw.com>
- * Responsibility : Matt Judy <mjudy@ithinksw.com>
- * Responsibility : Joseph Spiros <joseph.spiros@ithinksw.com>
+ * NSStatusItem subclass which attempts to approximate NSMenuExtra's
+ * appearance and functionality.
*
*
- * Copyright (c) 2002 iThink Software.
- * All Rights Reserved
+ * Copyright (c) 2005 iThink Software
*
*/
#import <Cocoa/Cocoa.h>
*
*/
#import <Cocoa/Cocoa.h>
+@class ITStatusItem;
-@interface ITStatusItem : NSStatusItem
-{
+@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;
-- (NSImage
*)
alternateImage;
-- (void)
setAlternateImage:(NSImage
*)image;
+- (NSImage
*)
alternateImage;
+- (void)
setAlternateImage:(NSImage
*)image;
-@end
+- (id <ITStatusItemMenuProvider>)menuProvider;
+- (void)setMenuProvider:(id <ITStatusItemMenuProvider>)provider;
+
+@end
\ No newline at end of file