Sha256: d23e3bf9dd1238a0a3b087a77bb64704e2dd7b13e3fe7c22e73dacf5aa00e64f

Contents?: true

Size: 577 Bytes

Versions: 28

Compression:

Stored size: 577 Bytes

Contents

class NSWindowController
  include Teacup::Layout
  include Teacup::Controller

  def windowDidLoad
    teacupDidLoad
  end

  def top_level_view
    window.contentView
  end

end


class TeacupWindowController < NSWindowController

  def self.new
    alloc.initWithWindowNibName(self.class.name)
  end

  def loadWindow
    self.window = NSWindow.alloc.initWithContentRect([[240, 180], [480, 360]],
      styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask,
      backing: NSBackingStoreBuffered,
      defer: false)
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

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