Custom window not getting a shadow
Custom window not getting a shadow
- Subject: Custom window not getting a shadow
- From: Ken Tozier <email@hidden>
- Date: Tue, 10 Nov 2009 06:51:04 -0500
Hi
I'm writing a custom window class and am finding that even though I
set the "hasShadow" property to YES, it isn't getting one. I stripped
the following example down to the bare esentials but still no shadow.
Anyone know why this might be happening?
- (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;
}
_______________________________________________
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