Skip to content

Instantly share code, notes, and snippets.

@aarongough
Created November 16, 2010 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarongough/702483 to your computer and use it in GitHub Desktop.
Save aarongough/702483 to your computer and use it in GitHub Desktop.
framework 'cocoa'
class Application
def applicationDidFinishLaunching(notification)
frame = NSRect.new(NSPoint.new(100, 100), NSSize.new(300, 300))
@main_window = NSWindow.alloc.initWithContentRect(
frame,
:styleMask => (NSTitledWindowMask | NSClosableWindowMask),
:backing => NSBackingStoreBuffered,
:defer => false
)
end
end
NSApplication.sharedApplication.delegate = Application.new
NSApplication.sharedApplication.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment