Sha256: 7c809a07a6e4c33fbfee2c25e6ef2ed991cb764cf0f97b09b0111efa5f19fd6b

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

class AppDelegate
  def applicationDidFinishLaunching(notification)
    buildMenu
    buildWindow
  end

  def buildWindow
    @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

4 entries across 4 versions & 1 rubygems

Version Path
motion-momentum-0.1.3 app/osx/app_delegate.rb
motion-momentum-0.1.2 app/osx/app_delegate.rb
motion-momentum-0.1.1 app/osx/app_delegate.rb
motion-momentum-0.1.0 app/osx/app_delegate.rb