mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Every menu item is created with a path (File > Save). The functions are stored in a hash from (menu item path -> action) on the window. When an AtomMenuItem is selected, it looks up the action on the current window based on its path.
11 lines
210 B
Objective-C
11 lines
210 B
Objective-C
#import <AppKit/AppKit.h>
|
|
|
|
@interface AtomMenuItem : NSMenuItem
|
|
|
|
@property BOOL global;
|
|
@property (nonatomic, retain) NSString *itemPath;
|
|
|
|
- initWithTitle:(NSString *)title itemPath:(NSString *)itemPath;
|
|
|
|
@end
|