Re: autolayout-based animation on NSView

2014-08-13 Thread Roland King
> > It should work to do: > > [view layoutSubtreeIfNeeded]; > [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){ >context.duration = 0.25; // you can leave this out if the default is > acceptable >context.allowsImplicitAnimation = YES; >[view updateConstraintsAndVa

Re: autolayout-based animation on NSView

2014-08-13 Thread Ken Thomases
On Aug 13, 2014, at 8:22 PM, Roland King wrote: > I have a constraint-based NSView layout which I can flip between states by > adjusting the constraint priorities and/or constants, and/or removing and > replacing some constraints. At the same time I make some views invisible or > visible again

autolayout-based animation on NSView

2014-08-13 Thread Roland King
I have a constraint-based NSView layout which I can flip between states by adjusting the constraint priorities and/or constants, and/or removing and replacing some constraints. At the same time I make some views invisible or visible again. All that stuff say is in a method on the view ..