• 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: [[NSView animator] setHidden:YES] doesn't fade?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: [[NSView animator] setHidden:YES] doesn't fade?
      • From: Philip Dow <email@hidden>
References: 
 >[[NSView animator] setHidden:YES] doesn't fade? (From: Philip Dow <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Brian Christensen <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Brian Christensen <email@hidden>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: crashing in Objective-C Cocoa code in Carbon app under Leopard
  • Next by Date: Dismissing an alert programatically
  • Previous by thread: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Next by thread: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Index(es):
    • Date
    • Thread