Created
November 18, 2012 15:31
-
-
Save summic/4105830 to your computer and use it in GitHub Desktop.
Create Borderless Transparent Window:
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
- (id) initWithContentRect: (NSRect) contentRect | |
styleMask: (unsigned int) aStyle | |
backing: (NSBackingStoreType) bufferingType | |
defer: (BOOL) flag | |
{ | |
if (![super initWithContentRect: contentRect | |
styleMask: NSBorderlessWindowMask | |
backing: bufferingType | |
defer: flag]){ | |
return nil; | |
} | |
[self setBackgroundColor: [NSColor clearColor]]; | |
[self setOpaque:NO]; | |
return self; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment