blob: d765978fadbbea5d1598bae68eec9a66e62fc675 (
plain)
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
|
//
// MenuItemProxy.h
// MacGap
//
// Created by Joe Hildebrand on 1/15/12.
// Copyright (c) 2012 Twitter. All rights reserved.
//
#import "Command.h"
#import "CallbackDelegate.h"
@class MenuProxy;
@interface MenuItemProxy : Command {
NSMenuItem *item;
CallbackDelegate *callback;
}
+ (MenuItemProxy*) proxyWithContext:(JSContextRef)aContext andMenuItem:(NSMenuItem*)anItem;
- (MenuProxy*)addSubmenu;
- (void) remove;
- (void) setCallback:(WebScriptObject*)aCallback;
- (void) setKey:(NSString*)keyCommand;
- (void) setTitle:(NSString*)title;
- (void) enable;
- (void) disable;
- (MenuProxy*)submenu;
@end
|