• 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: Scott Anguish <email@hidden>
  • Date: Wed, 6 Feb 2008 09:27:15 -0800

if you're using custom animations, you can use a callback for the animationDidStop:finished:

otherwise, as Seth said, you can use a timer.  which isn't bad

Or, if you're using an explicit animation you can group the animations together and set the beginTime for the fade to be the length of the animations before it. that will cause it to happen after.


On Feb 5, 2008, at 4:29 PM, Philip Dow wrote:

Thanks for the replies everyone.

I had mentioned...

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.

I wondered this myself....



...Seth said.

It isn't an issue with hiding the document if I just need to turn on layer backing, but there still might be the desire for a callback. My workaround has been to perform a selector on my "delegate" object with a delay that should put it right after the animation finishes. This works as long as exact timing is not required. Not an ideal solution, but barring anything else.

_______________________________________________

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

  • Prev by Date: Re: Searching for "whole word" in NSString
  • Next by Date: Animation in Cocoa too slow? [was: Animation with CALayer?]
  • Previous by thread: Re: [[NSView animator] setHidden:YES] doesn't fade?
  • Next by thread: Core Data, NSURLProtocol and Threads - A Case of Missing Managed Objects
  • Index(es):
    • Date
    • Thread