autoresizing problem
autoresizing problem
- Subject: autoresizing problem
- From: Craig Hopson <email@hidden>
- Date: Wed, 26 Oct 2005 15:57:55 -0600
I have a window which contains a view ('A'). For A the NSViewWidth &
NSViewHeight autosize flags are set. When the window is resized, the
view resizes appropriately in both dimensions.
I have a nib which contains a view ('B')
(which contains two sub views, one of which is embedded in a
scroller).
For view B, the NSViewWidth autosize flag is set.
The nib file's owner is a controller, which has an outlet for B.
When I create the controller, the nib is loaded. I then get B and
call [ A addSubview:B ] followed by [ A setAutoResizeSubviews:YES ].
B is added to A. However, when I resize the window, B does not
resize horizontally. Anyone have a guess what I'm missing?
BTW, I've tried probably every possible combination of autoresize
flags for B in the nib. The behavior does not change, so I don't
think the problem is just that I have the wrong flag set.
Thanks in advance,
-Craig
_______________________________________________
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