Skip to content

Instantly share code, notes, and snippets.

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