• 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: Alex Rice <email@hidden>
  • Date: Wed, 12 Feb 2003 19:50:49 -0700

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

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?

It's been a while since I've used Java, but I don't think Java has any equivalent to how Cocoa does it. Seems like the Cocoa layout manager is equally capable though. Once I learned the Cocoa I was less appreciative of overly complex GridBagLayout or whatever it's called now in Java.

One thing you didn't mention: did you add springs for the interior or exterior of the objects? The interior and exterior springs are what you are missing perhaps.

Take a look at the Interface Builder help. If like me, you can't cope with the Apple Help Viewer, crack that InterfaceBuilder.help bundle open and view it in Safari.

In particular see in InterfaceBuilder.help
Cocoa Objects | Automatically Moving and Sizing Objects and
Cocoa Objects | Autosizing Examples

In interface builder, hit Command-R to test your UI and see how it behaves.

Alex Rice <email@hidden> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable -Ani DiFranco
_______________________________________________
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: Text field cell plus menu?
  • Next by Date: validateMenuItem causes errors with table view?
  • Previous by thread: Re: layout management and cocoa
  • Next by thread: Problems with drawing to an NSImage in a faceless app
  • Index(es):
    • Date
    • Thread