Created
September 21, 2010 20:31
-
-
Save DylanLukes/590470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation ConcordeAppDelegate | |
@synthesize window, overlay; | |
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | |
// Make the overlay window transparent and borderless | |
[overlay setStyleMask:NSBorderlessWindowMask]; | |
[overlay setBackgroundColor:[NSColor colorWithDeviceRed:0.0 green:0.0 blue:0.0 alpha:0.0]]; | |
[overlay setOpaque:NO]; | |
// Add the overlay as a child window | |
[window addChildWindow:overlay ordered:NSWindowAbove]; | |
// Align it with the CNWorldView and make visible | |
NSRect overlayFrame = [window contentRectForFrameRect:[window frame]]; | |
[overlay setFrame:overlayFrame display:YES]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment