Programmatically resizing a view which contains an NSTabView
Programmatically resizing a view which contains an NSTabView
- Subject: Programmatically resizing a view which contains an NSTabView
- From: Larry Gerndt <email@hidden>
- Date: Fri, 05 Nov 2004 12:21:46 -0800
Title: Programmatically resizing a view which contains an NSTabView
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden