• 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: Dennis Munsie <email@hidden>
  • Date: Wed, 12 Feb 2003 19:55:07 -0500

Where did you add the springs at? On the inside or the outside of each item?

From what I know of IB, and what you've described, it sounds like you would need to set up the springs like this. On all of the items, you want springs on the inside, in both directions. In addition, you need to have additional springs on the outside for each of the items. Item A gets outside springs on the right, B on the bottom and left, C on the top and left.

I just tried this out in IB, and the items never overlapped. I did see one problem that I couldn't solve easily (maybe someone else can?) -- there doesn't seem to be a way to specify that the space between the items stays at a consistent amount. As I resize the window, the space between grows larger and smaller. This causes problems when resized really small (the items get really close together), and when resized large (a lot of wasted space...)

BTW, as I recall, the Cocoa Programming book (the big fat purple one) has a good explanation of how the springs work. I don't have it around at the moment, or otherwise, I would give you a page number to look at.

dennis

On Wednesday, February 12, 2003, at 05:44 PM, Baback Nemazie wrote:

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 |
| | | |
|--------------------| |--------------------|
_______________________________________________
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: layout management and cocoa
  • Next by Date: Re: layout management and cocoa
  • Previous by thread: Re: layout management and cocoa
  • Next by thread: Re: layout management and cocoa
  • Index(es):
    • Date
    • Thread