Re: [[NSView animator] setHidden:YES] doesn't fade?
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