Re: layout management and cocoa
Re: layout management and cocoa
- Subject: Re: layout management and cocoa
- From: Greg Titus <email@hidden>
- Date: Wed, 12 Feb 2003 16:43:53 -0800
On Wednesday, February 12, 2003, at 02: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.
One reason why there isn't an equivalent concept in Cocoa is that this
sounds like a bad UI design for a Cocoa app. Often when things are hard
in Cocoa it is because a better way is easier.
Are all three of these views actually useful at different sizes? If so,
why not use NSSplitView's between them so that the user can actually
decide what sizes they should have?
Do that, and you won't need a layout manager any more...
Hope this helps,
- Greg
_______________________________________________
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.