I am trying to resize a window with an animation using the NSAnimatablePropertyContainer animator proxy mechanism. The views have the "Wants CA Layer" option set in IB.

I use this code:

        NSRect frame = window.frame;
        frame.size.height += delta;
        frame.origin.y -= delta;
        [[window animator] setFrame:frame display:YES];

The problem is that during the animation, the window contens jump down briefly when the window grows, and up when it shrinks. It does not do this when I do not reset the origin by commenting out this line:

//      frame.origin.y -= delta;

But then the window grows upward which is not what I want.

I made a screen video here:

    http://www.youtube.com/watch?v=NARKujk2jrg


It also works if I don’t enable the CA layer backing in IB, but I need that because I am going to fade a subview at the same time as I resize the window. Without CA layers I can only hide and show the subview with a hard transition, but I want to fade it.

Is there something I should do differently or is this a known issue?


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to