mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-26 16:14:16 +03:00
App => WindowController, delegate => App
This commit is contained in:
parent
b132bd67e5
commit
c2c3d88b81
@ -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"];
|
||||
}
|
||||
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user