Dynamic resizing of shared subviews
Dynamic resizing of shared subviews
- Subject: Dynamic resizing of shared subviews
- From: August Trometer <email@hidden>
- Date: Tue, 20 Sep 2005 12:48:01 -0500
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:
This email sent to email@hidden