FROM : Larry Gerndt
DATE : Fri Nov 05 21:21:46 2004
I've been struggling with a problem for two days now, so it's time to ask
for help.
First, here's a picture that depicts the problem:
http://homepage.mac.com/sonofthesonofman/TabViewResize/
I'm developing a chat view which contains an NSTabView that has two tabs,
one for Public chat, and the for Private chat. The autoresizing masks are
setup such that the chat history pane's height is flexible (i.e. grows when
the chat view grows). Each tab view has a "Show Options" disclosure
button at the bottom, which, when turned on, grows the size of the view
downward, so that it can display some options. Before doing the resize, I
alter the autoresizing masks of both chat history panes (public and private
) to make them NOT flexible, do the resize, then set the masks back to
flexible again. This appears to work fine in the selected tab, but when I
switch to the other tab, I see that the pane didn't resize properly, it
behaves as if its autoresize masks never did get temporarily altered when
the resize occurred. The error is symmetrical (i.e. it always works right
in the first tab, and is always wrong in the opposite tab, regardless which
tab I start with). Does anyone have any idea why this might be happening?
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
DATE : Fri Nov 05 21:21:46 2004
I've been struggling with a problem for two days now, so it's time to ask
for help.
First, here's a picture that depicts the problem:
http://homepage.mac.com/sonofthesonofman/TabViewResize/
I'm developing a chat view which contains an NSTabView that has two tabs,
one for Public chat, and the for Private chat. The autoresizing masks are
setup such that the chat history pane's height is flexible (i.e. grows when
the chat view grows). Each tab view has a "Show Options" disclosure
button at the bottom, which, when turned on, grows the size of the view
downward, so that it can display some options. Before doing the resize, I
alter the autoresizing masks of both chat history panes (public and private
) to make them NOT flexible, do the resize, then set the masks back to
flexible again. This appears to work fine in the selected tab, but when I
switch to the other tab, I see that the pane didn't resize properly, it
behaves as if its autoresize masks never did get temporarily altered when
the resize occurred. The error is symmetrical (i.e. it always works right
in the first tab, and is always wrong in the opposite tab, regardless which
tab I start with). Does anyone have any idea why this might be happening?
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
| Related mails | Author | Date |
|---|---|---|
| Larry Gerndt | Nov 5, 21:21 | |
| ??? a.k.a. James C… | Nov 7, 15:09 |






Cocoa mail archive

