Custom borderless window not getting it's shadow
Custom borderless window not getting it's shadow
- Subject: Custom borderless window not getting it's shadow
- From: email@hidden
- Date: Wed, 11 Nov 2009 05:09:27 +0000 (UTC)
Hi
I'm writing a custom borderless window class and am finding that the shadow doesn't appear. Here's a bare bones implementation that shows the problem.
- (id) initWithSize:(NSSize) inSize
origin:(NSPoint) inOrigin
{
NSRect winFrame = NSMakeRect(inOrigin.x, inOrigin.y, inSize.width, inSize.height);
self = [super initWithContentRect: winFrame
styleMask: NSBorderlessWindowMask
backing: NSBackingStoreBuffered
defer: YES];
if (self)
{
[self setHasShadow: YES];
[self orderFront: self];
}
return self;
}
Shouldn't this work?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden