• 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: Nathan Day <email@hidden>
  • Date: Thu, 13 Feb 2003 12:51:03 +1030

You can get something similar to this by using split view, first select B and C and make the a subview of a split view (under the layout menu), set the springs in the center of the split view to on, then select A and the split view containing B and C and make them a subview of split view. Alternatively you could make them all a subview of a custom view and override the setFrame, and set the sub frames manually.

On Thursday, February 13, 2003, at 09:14 AM, 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 |
| | | |
|--------------------| |--------------------|

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?

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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: Monitoring the selection in an NSOutlineView
  • Next by Date: Re: OmniWeb and AppleEvents
  • Previous by thread: Re: layout management and cocoa
  • Next by thread: Re: layout management and cocoa
  • Index(es):
    • Date
    • Thread