Posted By

appjon on 06/28/11


Tagged


Versions (?)

Makes transparent window


 / Published in: Other
 

  1. - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned long)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag {
  2. self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
  3. [self setMovableByWindowBackground:YES];
  4. [self setBackgroundColor:[NSColor clearColor]];
  5. [self setLevel:NSNormalWindowLevel];
  6. [self setOpaque:NO];
  7. [self setHasShadow:YES];
  8.  
  9. return self;
  10. }

Report this snippet  

You need to login to post a comment.