Re: setAlphaValue: and NSTextField
Re: setAlphaValue: and NSTextField
- Subject: Re: setAlphaValue: and NSTextField
- From: Quincey Morris <email@hidden>
- Date: Sat, 12 Mar 2011 13:23:41 -0800
On Mar 12, 2011, at 11:45, Carlos Eduardo Mello wrote:
> when I use the code bellow, the text inside my text field fades out ok. So do the rim and shadow, however the white rectangular shape of the field stays visible.
> Is this the expected behaviour?
> I thought setting the view's alpha to 0 would render it completely invisible...
>
> [NSAnimationContext beginGrouping];
> [[NSAnimationContext currentContext] setDuration:kANIMATION_SPEED];
> [[myTextField animator] setAlphaValue:0.0];
> [NSAnimationContext endGrouping];
Was this text field first responder before you faded it? If so, it may be the remains of the field editor showing. Try making something else the first responder first.
_______________________________________________
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