App => WindowController, delegate => App

This commit is contained in:
Chris Wanstrath 2011-08-24 02:21:42 -07:00
parent b132bd67e5
commit c2c3d88b81
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
- (void)webView:(WebView *)sender didStartProvisionalLoadForFrame:(WebFrame *)frame {
// https://github.com/parmanoir/jscocoa#readme
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[frame globalContext]];
[jsc setObject:self withName:@"App"];
[jsc setObject:self withName:@"WindowController"];
}

View File

@ -67,7 +67,7 @@ Chrome =
sender: 'editor'
title: (text) ->
App.window.title = text
WindowController.window.title = text
toggleFullscreen: ->
if Chrome.fullscreen?
@ -79,13 +79,13 @@ Chrome =
Chrome.fullscreen = false
OSX.NSMenu.setMenuBarVisible not OSX.NSMenu.menuBarVisible
window = App.window
window = WindowController.window
enterFullscreen: ->
Chrome.fullscreen = true
OSX.NSMenu.setMenuBarVisible not OSX.NSMenu.menuBarVisible
window = App.window
window = WindowController.window
fullscreenWindow = OSX.NSWindow.alloc.
initWithContentRect_styleMask_backing_defer_screen(