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-3.0.1 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-3.0.0 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.3.0 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.2.2 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.2.0 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.16 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.15 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.14 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.13 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.12 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.11 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.10 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.9 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.8 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.7 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.6 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.5 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.4 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.3 lib/teacup-osx/core_extensions/ns_window_controller.rb
teacup-2.1.2 lib/teacup-osx/core_extensions/ns_window_controller.rb