• 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: setAlphaValue: and NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >setAlphaValue: and NSTextField (From: Carlos Eduardo Mello <email@hidden>)

  • Prev by Date: Re: CoreFoundation object over-retained during finalization
  • Next by Date: Re: CoreFoundation object over-retained during finalization
  • Previous by thread: setAlphaValue: and NSTextField
  • Next by thread: Using the same typedef in multiple files
  • Index(es):
    • Date
    • Thread