• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IB view transitions, CA, NSWindow animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB view transitions, CA, NSWindow animation


  • Subject: IB view transitions, CA, NSWindow animation
  • From: Jacob Bandes-Storch <email@hidden>
  • Date: Sat, 26 Jul 2008 23:36:40 -0700

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: IB view transitions, CA, NSWindow animation
      • From: Milen Dzhumerov <email@hidden>
  • Prev by Date: Accessing a property of a returned object?
  • Next by Date: Re: highlighted table column in nib
  • Previous by thread: Re: Accessing a property of a returned object?
  • Next by thread: Re: IB view transitions, CA, NSWindow animation
  • Index(es):
    • Date
    • Thread