Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
Dear List, I have an old transparent NSPanel, which shape is only defined by the painted portion of the views it contains. The NSPanel has the following attributes set: ExcludedFromWindowsMenu:NO BackgroundColor: [NSColor clearColor] AlphaValue:1.0 HasShadow:YES useOptimizedDrawing:YES

Re: Clear NSPanel View Shadow

2012-10-22 Thread Wim Lewis
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

Re: Clear NSPanel View Shadow

2012-10-22 Thread Ken Thomases
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

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
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. Cheers, Jean On 22 oct. 2012, at 22:06, Ken

Re: Clear NSPanel View Shadow

2012-10-22 Thread Jean Suisse
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