Files
atom/Atom/Classes/AtomApp.h
Nathan Sobo a010c8e3c6 Add window.bindMenuItem, which adds a menu item that invokes a given function.
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.
2011-12-26 13:12:27 -06:00

15 lines
355 B
Objective-C

#import <Cocoa/Cocoa.h>
@class AtomController, AtomMenuItem;
@interface AtomApp : NSApplication <NSApplicationDelegate>
@property (nonatomic, retain) NSMutableArray *controllers;
- (void)removeController:(AtomController *)controller;
- (IBAction)runSpecs:(id)sender;
- (void)performActionForMenuItem:(AtomMenuItem *)item;
- (void)resetMainMenu;
@end