• 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
CATransition and animationDidStop:finished: delegate method.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CATransition and animationDidStop:finished: delegate method.


  • Subject: CATransition and animationDidStop:finished: delegate method.
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 14 Jan 2008 17:17:51 +0000

Hello there

I have successfully set up my view subclass to use CATransition as below:

- (void)updateSubviewsTransition {
_transition = [CATransition animation];
[_transition setDelegate:self];
[_transition setType:kCATransitionFade];
[_transition setSubtype:kCATransitionFromLeft];
[_transition setDuration:1.0];
[self setAnimations:[NSDictionary dictionaryWithObject:_transition forKey:@"subviews"]];
}


The view subclass receives
[self setWantsLayer:YES]
and then
[[self animator] replaceSubview:[[self subviews] objectAtIndex:0] with:newView]
to animate the replaceSubview.


I had hoped that when the transition was complete I would receive an animationDidStop:finished: on my delegate.
But this does not seem to occur. Should it?
I need to set [self setWantsLayer:NO] once the transition is complete
as the persistent presence of the layer affects the live resizing redraw behaviour of the subviews (NSTableView contents blank out).


NSTimer is waiting in the wings.

Regards

Jonathan
_______________________________________________

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


  • Prev by Date: NSTreeController Core Data Duplicate Entries Problem
  • Next by Date: White block at Core Animation Rendering
  • Previous by thread: NSTreeController Core Data Duplicate Entries Problem
  • Next by thread: White block at Core Animation Rendering
  • Index(es):
    • Date
    • Thread