Re: layout management and cocoa
Re: layout management and cocoa
- Subject: Re: layout management and cocoa
- From: Jan Van Tol <email@hidden>
- Date: Wed, 12 Feb 2003 19:21:44 -0600
Perhaps a NSSplitView between A and B/C would give the desired
behavior? I think you would have to group B and C in some sort of
view, say a custom view or box, then group the box and A in a
splitView. Then add the springs to the splitView.
That may not be exactly what you're looking for, but I hope it helps.
-Jan Van Tol
On Wednesday, February 12, 2003, at 04:44 PM, Baback Nemazie wrote:
Hi,
I am familiar with layout managers in Java Swing. There does not seem
to be the
equivalent concept in cocoa. I have a simple window with three items
lined up as:
|--------------------| |--------------------|
| | | |
| | | B |
| | | |
| | |--------------------|
| A |
I | |--------------------|
| | | C |
| | | |
|--------------------| |--------------------|
Now I want the items to expand vertically and horizontally as I expand
and shrink the
container window. I simple-mindedly added "springs" to all items A, B,
and C in both
x and y directions. Now items expand but the expansion does not
respect boundaries of
other items, i.e., A expands into areas for B and C. The shrinkage
does not occur nicely
either. How do I do this correctly in IB to get this to work as in
Java Swing?
Thanks
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.