Every window has a path

This commit is contained in:
Corey Johnson
2011-10-28 17:12:16 -07:00
parent 8b906e40c1
commit 445e5a8ce0
9 changed files with 91 additions and 59 deletions

View File

@@ -2,7 +2,7 @@ module.exports =
class Native
# path - Optional. The String path to the file to base it on.
@newWindow: (path) ->
controller = OSX.NSApp.createController
controller = OSX.NSApp.createController path
controller.window
controller.window.makeKeyAndOrderFront null