Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created October 21, 2009 05:13
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 tolmasky/214890 to your computer and use it in GitHub Desktop.
Save tolmasky/214890 to your computer and use it in GitHub Desktop.
NSWindow * window = [[NSWindow alloc] initWithContentRect:NSMakeRect(100.0, 100.0, 300.0, 400.0) styleMask:NSTitledWindowMask | NSClosableWindowMask backing:NSBackingStoreBuffered defer:YES];
NSWindow * windowp = [[NSWindow alloc] initWithContentRect:NSMakeRect(100.0, 100.0, 500.0, 400.0) styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
[windowp setContentView:[[View alloc] init]];
[window addChildWindow:windowp ordered:NSWindowBelow];
[windowp orderFront:self];
[window makeKeyAndOrderFront:self];
[window setLevel:3];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment