CATransition and animationDidStop:finished: delegate method.
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