summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e8dda4b)
Proposed by Georg Seifert.
@implementation VLCEmbeddedWindow
@implementation VLCEmbeddedWindow
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation
+{
+ BOOL useTextured = YES;
+ if([[NSWindow class] instancesRespondToSelector:@selector(setContentBorderThickness:forEdge:)])
+ {
+ useTextured = NO;
+ windowStyle ^= NSTexturedBackgroundWindowMask;
+ }
+ self = [super initWithContentRect:contentRect styleMask:windowStyle backing:bufferingType defer:deferCreation];
+ if(!useTextured)
+ {
+ [self setContentBorderThickness:32.0 forEdge:NSMinYEdge];
+ }
+ return self;
+}
+
- (void)awakeFromNib
{
[self setDelegate: self];
- (void)awakeFromNib
{
[self setDelegate: self];