Commit Graph

16 Commits

Author SHA1 Message Date
Nathan Sobo
be0fa84f1f Move fs support methods out of AtomController into FileSystemHelper 2012-01-04 18:01:31 -07:00
Corey Johnson & Nathan Sobo
5b3e0e9f83 fs.async.list takes a boolean 'recursive' flag. 2012-01-03 14:23:18 -07:00
Corey Johnson & Nathan Sobo
e327dcc8e5 Experiment with async callbacks from js 2011-12-30 18:02:11 -06:00
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
ca9e26882a Bypass key equivalents on keydown until web view has a chance to process events.
Move refresh handling to keyDown: method on AtomController. Eliminate custom handleInputEvent method.

NSApplication-sendEvent calls performKeyEquivalents on keydown events. Here I override sendEvent for keydown and forward the event to its window. This allows the web view to receive Command-H etc without key equivalents interfering. If the web view short-circuits the event, then the key equivalent will not be invoked. But it can let the event pass through and it ends up invoking the key equivalent anyway via a mechanism I don't fully understand. Apparently Cocoa tries to execute key equivalents after the web view finishes with the event? But it works great.
2011-12-15 19:10:58 -08:00
Corey Johnson
583d0d749c 💄 2011-12-15 09:34:09 -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
89c00ec8a6 Teardown and recreate WebView (not the entire controller) on reload. 2011-12-14 10:46:57 -08:00
Corey Johnson & Nathan Sobo
5daabb3241 Add facility for running specs… still don't have any yet.
Use property accessors instead of raw ivars.
2011-12-12 13:04:46 -08:00
Corey Johnson
2512b48293 Corey, Corey, Corey... 2011-11-11 14:14:09 -08:00
Corey Johnson
0e0d0905b9 No more compiler warnings. 2011-11-10 14:53:55 -08:00
Corey Johnson
bccd592310 Got rid of everything on the Objective-C side that we don't need. 2011-11-10 14:50:31 -08:00
Corey Johnson
7e7bbe3f01 Multiple windows can be opened, and their buffer state is saved. 2011-11-03 15:48:19 -07:00
Corey Johnson
912654cddf opening paths and multiple windows is working! 2011-10-31 16:14:43 -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