Re: Clear NSPanel & View Shadow
Re: Clear NSPanel & View Shadow
- Subject: Re: Clear NSPanel & View Shadow
- From: Wim Lewis <email@hidden>
- Date: Mon, 22 Oct 2012 13:07:59 -0700
On 22 Oct 2012, at 12:07 PM, Jean Suisse wrote:
> The issue:
> If the NSPanel opens with theView visible, when hiding it, theView's shadow remains.
> If the NSPanel opens with theView hidden, when displaying theView, theView doesn't get a shadow.
>
> It seems that the shadow for the panel is only computed when first displayed. I tried various options, but I must be missing something.
There is a method you can call, -[NSWindow invalidateShadow], which might help. (I don't know why it isn't invoked automatically.) This page has some discussion as well:
http://cocoadev.com/wiki/InvalidatingShadowDoesNotReflectRecentlyHiddenAndShownViews
_______________________________________________
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