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 20:16:40 -0500
On Jan 22, 2008, at 20:06, Philip Dow wrote:
Hi all,
I'm looking to fade a view on Leopard. I'm using the animator to
successfully move the view by changing its frame, but calling
setHidden on it does not seem to fade it -- behavior I would expect.
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
/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