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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com