• 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: Philip Dow <email@hidden>
  • Date: Tue, 22 Jan 2008 22:00:20 -0800

I don't mind using setAlpha, but a difficulty remains. At the end of the animation I need the view hidden. I haven't seen a delegate method that would tell me when a NSAnimationContext grouping has finished executing its animations. This is possible with NSAnimation, but using the new APIs in Leopard I don't see a way to accomplish this short of subclassing the view and noting when the alpha value reaches zero. Perhaps I'm just missing it?

~Phil

On Jan 22, 2008, at 6:32 PM, Brian Christensen wrote:

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



Journler Developer
email@hidden




_______________________________________________

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: Seth Willits <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>)
 >Re: [[NSView animator] setHidden:YES] doesn't fade? (From: Brian Christensen <email@hidden>)

  • Prev by Date: Core Data Performance
  • Next by Date: Sortable Table Column with Custom Appearance
  • 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