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: Brian Christensen <email@hidden>
- Date: Tue, 22 Jan 2008 21:32:16 -0500
On Jan 22, 2008, at 20:59, I. Savant wrote:
On Jan 22, 2008, at 8:38 PM, Brian Christensen wrote:
You should be able to achieve the effect you're looking for by
using setAlphaValue: instead:
[[myView animator] setAlphaValue:0.0]; // fade out
[[myView animator] setAlphaValue:1.0]; // fade in
Since I would also expect for this to work the way you tried it
though, I've filed this as rdar://5701296.
I wouldn't. Hidden and alpha-0 are two different things. I wouldn't
want the hidden property messing around with alpha values.
Since 'hidden' is a boolean (and not a float), there's only two
possible values in such an animation: 0 and 1. That equates to one
'frame': the target one.
I hadn't considered that. Good point.
/brian
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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