Makes transparent window


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.