-
Notifications
You must be signed in to change notification settings - Fork 0
/
StatusController.h
38 lines (33 loc) · 1.03 KB
/
StatusController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// StatusController.h
// StatusItemCrash
//
// Created by Michael Harper on 10/1/09.
// Copyright 2009 Standalone Code LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface StatusController : NSObject <NSMenuDelegate>
{
IBOutlet NSMenu *statusMenu;
IBOutlet NSMenuItem *status;
NSStatusItem *statusMenuItem;
NSThread *cycleThread;
BOOL menuOpen;
BOOL menuGuarded;
IBOutlet NSMenuItem *menuGuardedItem;
}
@property (nonatomic, retain) NSMenu *statusMenu;
@property (nonatomic, retain) NSMenuItem *status;
@property (nonatomic, retain) NSStatusItem *statusMenuItem;
@property (nonatomic, retain) NSThread *cycleThread;
@property (nonatomic) BOOL menuOpen;
@property (nonatomic) BOOL menuGuarded;
@property (nonatomic, retain) NSMenuItem *menuGuardedItem;
-(void) createStatusMenu;
-(void) cycleStatus:(id) ignore;
-(IBAction) toggleGuardAction:(id) sender;
-(IBAction) cycleAction:(id) sender;
-(IBAction) stopCycleAction:(id) sender;
-(IBAction) quitAction:(id) sender;
-(void) setStatusTitle:(NSString *) statusTitle;
@end