• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Clear NSPanel & View Shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clear NSPanel & View Shadow


  • Subject: Clear NSPanel & View Shadow
  • From: Jean Suisse <email@hidden>
  • Date: Mon, 22 Oct 2012 21:07:47 +0200

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
Opaque:NO

Recently, I felt the need to show/hide one of the view in the panel using
[theView animator] setAlphaValue: xxx];

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.

Best regards
Jean
_______________________________________________

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

  • Follow-Ups:
    • Re: Clear NSPanel & View Shadow
      • From: Ken Thomases <email@hidden>
    • Re: Clear NSPanel & View Shadow
      • From: Wim Lewis <email@hidden>
  • Prev by Date: NSSearchField set Predicate Binding format dynamically
  • Next by Date: Re: Clear NSPanel & View Shadow
  • Previous by thread: NSSearchField set Predicate Binding format dynamically
  • Next by thread: Re: Clear NSPanel & View Shadow
  • Index(es):
    • Date
    • Thread