Class: NSViewController

Inherits:
Object
  • Object
show all
Includes:
Teacup::Controller, Teacup::Layout
Defined in:
lib/teacup-osx/core_extensions/ns_view_controller.rb

Instance Method Summary collapse

Methods included from Teacup::Controller

included, #layoutDidLoad, #root, #stylesheet=, #teacupDidLoad

Methods included from Teacup::Layout

#auto, included, #layout, #stylesheet, #stylesheet=, #subview

Instance Method Details

#_teacup_loadviewObject



5
# File 'lib/teacup-osx/core_extensions/ns_view_controller.rb', line 5

alias _teacup_loadview loadView

#loadViewObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/teacup-osx/core_extensions/ns_view_controller.rb', line 6

def loadView
  if nibName and nibBundle
    _teacup_loadview
  else
    self.view = NSView.new
    self.view.autoresizingMask = NSViewWidthSizable|NSViewHeightSizable
  end

  teacupDidLoad
end

#top_level_viewObject



17
18
19
# File 'lib/teacup-osx/core_extensions/ns_view_controller.rb', line 17

def top_level_view
  view
end