Skip to content

Instantly share code, notes, and snippets.

@dunckr
Last active August 29, 2015 14:17
Show Gist options
  • Save dunckr/9bc4cf60f6eb19d66945 to your computer and use it in GitHub Desktop.
Save dunckr/9bc4cf60f6eb19d66945 to your computer and use it in GitHub Desktop.
CocoaScript translation
NSRect frame = [[NSScreen mainScreen] frame]
equivalent to:
var frame = NSScreen.mainScreen().frame()
[[NSPanel alloc] initWithContentRect:frame styleMask:mask backing:NSBackingStoreBuffered defer:true];
NSPanel.alloc().initWithContentRect_styleMask_backing_defer(frame, mask, NSBackingStoreBuffered, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment