Re: Dynamic resizing of shared subviews
Re: Dynamic resizing of shared subviews
- Subject: Re: Dynamic resizing of shared subviews
- From: John Pannell <email@hidden>
- Date: Tue, 20 Sep 2005 12:03:08 -0600
Hi August-
Instead of nesting these two views in an NSBox, you could put them in
an NSSplitView, although I'm not sure these resize their subviews
when a view is manipulated programatically (they do when users fiddle
with the split, however :-). I think the well regarded RBSplitView
many offer the type of functionality you seek.
HTH-
John
On Sep 20, 2005, at 11:48 AM, August Trometer wrote:
I'm trying an experiment with custom views. I have 2 views side by
side (A and B), that are subviews of a third view, in this case an
NSBox. The subviews have no scroll views -- they're just strictly
views. I've set them up in IB so that the springs are appropriate
and that they resize correctly.
Now, when I programmatically change the size of subview A, subview
B does not automatically resize, even if I send it a
setNeedsDisplay. autoresizesSubviews is set to YES. I was assuming
that setting the views to size in IB would accomplish this. I've
also tried resizeSubviewsWithOldSize: and
resizeWithOldSuperviewSize: with no luck.
I can obviously change the size of both subviews, but I'm wonding
if there's a way to have the views automatically resize when one of
them changes.
Thanks!
August
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40positivespinmedia.com
This email sent to email@hidden
_______________________________________________
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