Sha256: e19dd136ee188eaee67cea92d04772127d1441aa9eefe27b71368f4f036566e8

Contents?: true

Size: 366 Bytes

Versions: 28

Compression:

Stored size: 366 Bytes

Contents

class NSViewController
  include Teacup::Layout
  include Teacup::Controller

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

    teacupDidLoad
  end

  def top_level_view
    view
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
teacup-2.1.1 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.1.0 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.6 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.5 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.4 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.3 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.2 lib/teacup-osx/core_extensions/ns_view_controller.rb
teacup-2.0.0 lib/teacup-osx/core_extensions/ns_view_controller.rb