root/trunk/Views/KABubbleWindow.m

Revision 3072, 0.7 kB (checked in by timothy, 3 years ago)

Major file system restructuring of the code files.

Line 
1 #import "KABubbleWindow.h"
2
3 @implementation KABubbleWindow
4
5 - (id)initWithContentRect:(NSRect)contentRect
6                                 styleMask:(unsigned int)aStyle
7                                   backing:(NSBackingStoreType)bufferingType
8                                         defer:(BOOL)flag {
9        
10         //use NSWindow to draw for us
11         NSWindow* result = [super initWithContentRect:contentRect
12                                                                                 styleMask:NSBorderlessWindowMask
13                                                                                   backing:NSBackingStoreBuffered
14                                                                                         defer:NO];
15        
16         //set up our window
17         [result setBackgroundColor: [NSColor clearColor]];
18         [result setLevel: NSStatusWindowLevel];
19         [result setAlphaValue:0.15];
20         [result setOpaque:NO];
21         [result setHasShadow: YES];
22         [result setCanHide:NO ];
23        
24         return result;
25 }
26
27 @end
Note: See TracBrowser for help on using the browser.