Commit Graph

9 Commits

Author SHA1 Message Date
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
Nathan Sobo
ae4fdf8812 Add Native.resetMainMenu and call it in global afterEach
This method removes any AtomMenuItems that aren't marked as 'global'. It ignores menu items that aren't instances of our custom subclass. This is needed by specs to clear any menu items added during tests. It will also be needed when a window loses focus and we want to remove any non-global menus associated with the window.
2011-12-23 12:43:32 -06:00
Nathan Sobo
ff57cbc8f6 Make "Run Specs" menu item w/ key equivalent. 2011-12-16 16:30:55 -08:00
Corey Johnson
fbb3efacf4 wii - gettings specs on App.open. Window closing not working quite right. 2011-12-14 16:24:30 -08:00
Corey Johnson
2de76e35f1 Moving the logic of window reloading to objective-c. 2011-11-29 13:50:24 -05:00
Corey Johnson
0e0d0905b9 No more compiler warnings. 2011-11-10 14:53:55 -08:00
Corey Johnson
750ede4f2c handle storage on the objective-c side. 2011-11-04 17:43:15 -07:00
Corey Johnson
445e5a8ce0 Every window has a path 2011-10-28 17:12:16 -07:00
Corey Johnson
003effe5fd Kind of starting from scratch.
Recreated the project as an xcode 4 project.
Key Bindings are working and reloading.
Got rid of everything that wasn't being used right now.
2011-10-26 11:12:18 -07:00