Re: Layer needs display if presentation layer moves?
Re: Layer needs display if presentation layer moves?
- Subject: Re: Layer needs display if presentation layer moves?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 29 Jan 2014 12:16:13 -0800
On Wed, Jan 29, 2014, at 12:14 PM, Kyle Sluder wrote:
> [connectionsAnimGroup addAnimation:[MyConnectionsAnimation
> animationOfLineNamed:sublayer.name
> fromPoint:oldConnectionEndpoint toPoint:newConnectionEndpoint];
> }
>
> // The connections layer returns YES for
> +needsDisplayForKey:@"connections"
> // TODO: Support retargeting animations mid-flight
> [_connectionsLayer addAnimation:connectionsAnimGroup
> forKey:@"connections"];
Also, I'm not quite happy with this pseudocode. It would be a lot nicer
if you could add an animation for a key _path_, rather than just a key.
But I suppose instead of an animation group, you could just paste a
prefix to the layer name and add a bunch of individual animations
directly to the connections layer.
The joys of writing code in the Compose window.
--Kyle Sluder
_______________________________________________
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