It was an endless series of compounding errors yesterday for some reason, but I
finally managed to get it to work. In retrospect it is easy, but not easily
discoverable.
Here's the finished demo project:
http://www.sethwillits.com/temp/CATest_PresentationLayerTracking.zip
In this project a
On Wed, Jan 29, 2014, at 11:44 AM, Seth Willits wrote:
- ConnectionsLayer has a private property: @property int
nodePositionsDidChange;
- +needsDisplayForKey: returns YES for nodePositionsDidChange (calls
super for anything else)
- noteNodePositionsChanged calls:
[self
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
I have several box-shaped layers and while any of them is moving (position or
bounds is changing), I need this one other shared connections layer (which
draws lines between certain boxes) to continuously redraw, so it's drawing the
lines between the box layers' presentation layers so it
On Tue, Jan 28, 2014, at 05:00 PM, Seth Willits wrote:
I have several box-shaped layers and while any of them is moving
(position or bounds is changing), I need this one other shared
connections layer (which draws lines between certain boxes) to
continuously redraw, so it's drawing the lines
On Jan 28, 2014, at 5:26 PM, Kyle Sluder k...@ksluder.com wrote:
The most straightforward way to do this is probably going to be creating
a custom CAAnimation that drives the position of the views which are
moving around, as well as a property of the connections layer that
encodes the