• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: layout management and cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >layout management and cocoa (From: Baback Nemazie <email@hidden>)

  • Prev by Date: Re: Subclassing a Cocoa class while in a Java package
  • Next by Date: Re: layout management and cocoa
  • Previous by thread: layout management and cocoa
  • Next by thread: Re: layout management and cocoa
  • Index(es):
    • Date
    • Thread