On 22 oct. 2012, at 22:32, Jean Suisse <jean.li...@gmail.com> wrote:
> Thank you very much for your reply. > Indeed, calling invalidateShadow did the trick. Now I need to find a way to > be notified when [[view animator] dosomething] completes, otherwise the > shadow takes the shape of the window before the transformation. Which I found here: http://stackoverflow.com/questions/12240870/cocoa-run-block-after-animation-on-osx > > Cheers, > Jean > > > On 22 oct. 2012, at 22:06, Ken Thomases <k...@codeweavers.com> wrote: > >> On Oct 22, 2012, at 2: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. >> >> You're looking for -[NSWindow invalidateShadow]. >> >> Cheers, >> Ken >> > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com