Sha256: db411616c35e841319b35c82e5448c38c8c47de081c2db31a4f6d10590d91b8a

Contents?: true

Size: 661 Bytes

Versions: 2

Compression:

Stored size: 661 Bytes

Contents

include SugarCube::Adjust


class AppDelegate
  def applicationDidFinishLaunching(notification)
    buildMenu
    buildWindow
  end

  def buildWindow
    @controller = MainWindowController.new
    @mainWindow = @controller.window
    @table_view_controller = MainTableController.new

    # @mainWindow = NSWindow.alloc.initWithContentRect([[240, 180], [480, 360]],
    #   styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask,
    #   backing: NSBackingStoreBuffered,
    #   defer: false)
    @mainWindow.title = NSBundle.mainBundle.infoDictionary['CFBundleName']
    @mainWindow.orderFrontRegardless
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teacup-2.0.2 samples/teacup-osx/app/app_delegate.rb
teacup-2.0.0 samples/teacup-osx/app/app_delegate.rb