• 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
Re: [[NSView animator] setHidden:YES] doesn't fade?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[NSView animator] setHidden:YES] doesn't fade?


  • Subject: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • From: Troy Stephens <email@hidden>
  • Date: Thu, 24 Jan 2008 10:41:43 -0800

Confirming and expanding on what Scott and Bill wrote:

Turning on layer-backing is necessary in order to get the default fade (or any other transition) when removing a view from the hierarchy, or hiding/unhiding a view.

Overall view alpha, shadows, filters, and transitions are features that likewise rely on Core Animation's compositing model, and thus work only in layer-backed mode. (There is an errant assertion in the AppKit Release Notes that a view's alphaValue will affect conventional view compositing as well. I'll see that that gets corrected.)

Troy

On Jan 23, 2008, at 9:53 PM, Scott Anguish wrote:
it should (according to the docs)

but you need to have layer-backing enabled on the superview or some other ancestor



On Jan 23, 2008, at 3:56 AM, Jonathon Mah wrote:

On 2008-01-23, at 12:29, I. Savant wrote:

Hidden and alpha-0 are two different things. I wouldn't want the hidden property messing around with alpha values.


But (AFAIK) removing a view from the hierarchy can trigger a fade; why shouldn't hiding it also do similar?

_______________________________________________

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


References: 
 >[[NSView animator] setHidden:YES] doesn't fade? (From: Philip Dow <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Brian Christensen <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Brian Christensen <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: "I. Savant" <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Jonathon Mah <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Nib ownership and retain count
  • Next by Date: Re: Changing CALayer's contents too rapidly causes CoreAnimation to implode?
  • Previous by thread: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Next by thread: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Index(es):
    • Date
    • Thread