Sha256: 56b7f62ebd04428a6dae9eeaa79983def359efbc661ae472f7a629d5ce3af265
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
class AppDelegate def applicationDidFinishLaunching(notification) buildMenu buildWindow end def buildWindow @director = Joybox::Configuration.setup do director display_stats: true end @main_window = NSWindow.alloc.initWithContentRect([[240, 180], [480, 360]], styleMask: NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask, backing: NSBackingStoreBuffered, defer: false) @main_window.title = NSBundle.mainBundle.infoDictionary['CFBundleName'] @main_window.contentView.addSubview(@director.view) @main_window.orderFrontRegardless @director.run_with_scene(DefaultLayer.scene) end end
Version data entries
4 entries across 4 versions & 1 rubygems