For a bit of background, I've got a window, and I'll be swapping its content view's subview between some other views. One (and more in the future) of the other views has a subview with "wants layer" set so it can use some CALayer stuff for fading and such. Now, when I switch between views for the window, I want the window to resize, and a nice animated transition (like a cube).

For resizing, the logical method is -[NSWindow setFrame:display:animate:]. This all works fine... until a descendant subview has a layer. Then I get a pause, and the window resizes without animating. If I remove the layer from the subview, the animation works. (The subview is a descendant of the view which I am *removing* from the window *before* changing the size. Why does it make a difference anyway?)

For the animated transition, it appears that IB has a setting for some predefined transitions. I set the window's "subviews" transition to Rotating Cube... and yet, I don't get a rotating cube effect when removing a subview and adding another. If I use the content view's animator ([[window contentView] animator]) to add the subview, nothing seems to change... If I do the same, only addSubview:[newView animator] as well, it seems to try, but it doesn't work all that well.

Can anyone give me some advice here? What am I doing that's ruining the NSWindow resize animation? How can I get the view transitions working? Thanks in advance.
_______________________________________________

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

This email sent to [EMAIL PROTECTED]

Reply via email to