FROM : Trygve Inda
DATE : Sat Feb 16 22:55:28 2008
> 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
DATE : Sat Feb 16 22:55:28 2008
> 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
| Related mails | Author | Date |
|---|---|---|
| Trygve Inda | Feb 16, 21:42 | |
| Trygve Inda | Feb 16, 22:55 |






Cocoa mail archive

