Does the window have any content?
Kevin
On Nov 10, 2009, at 11:09 PM, [email protected] wrote:
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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/kevin%40xheadsoftware.com
This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]