AnimatingTabView broken

  • I am using Apple's AnimatingTabView class from the Reducer sample code.

    AnimatingTabView is a Subclass of NSTabView and it works fine to do nice
    transitions but...

    I have a 4 tabbed view in my window and the tabs and border all hidden so
    only the content is shown. If I am in tab 0, and of course tabs 1-3 are
    hidden, then I shrink the window some and do a tab switch, the content jumps
    down on the y axis during the animation by the amount the window has shrunk.

    I am thinking that with a tab view, when it is shrunk, and controls
    naturally move, the hidden tabs do not update their subviews' positioning
    until the tab view needs to be drawn.

    How can I fix this behavior?

    Thanks,

    Trygve
  • > I am using Apple's AnimatingTabView class from the Reducer sample code.
    >
    > AnimatingTabView is a Subclass of NSTabView and it works fine to do nice
    > transitions but...

    > I am thinking that with a tab view, when it is shrunk, and controls
    > naturally move, the hidden tabs do not update their subviews' positioning
    > until the tab view needs to be drawn.

    Real world test:

    Have an NSTabView with 4 tabs and no border or tabs headers visible. Put it
    in a Window and cycle through all tabs so each is shown. At this point the
    frams of all NSTabViewItem are the same.

    Now with tab 0 showing, resize the window.  Only the frame of tab 0 changes.
    The frams of the other tabs (and the positioning of all the sub items) will
    not change until the tab is shown.

    How can I force all the hidden tabs to update the positioning of the sub
    items. I need to do this so I can gram a bitmap representation of a hidden
    tab in the proper position.

    I have invoked setAutoresizesSubviews:YES on all the parts but it doesn't
    work... They do resize of course, but only as they are needed to be viewed.
    I need to force all hidden items to reposition correctly.

    Thanks,

    Trygve