• 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
Controlling control positions and size in a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling control positions and size in a window


  • Subject: Controlling control positions and size in a window
  • From: Steve Palmer <email@hidden>
  • Date: Wed, 28 Jan 2004 22:47:47 -0800

I'm trying to figure out how the auto-sizing of views and controls within a window work.

I have a mail window that has a NSTextField and NSProgressControl positioned at the top and below that, an NSSplitView that takes up the rest of the space. The NSSplitView size info is set so that when the split view is resized, the views within it are automatically resized.

The problem is that when the main window is resized, the position of the NSTextField and NSProgressControl are also automatically adjusted relative to the main window size. What I want is for the NSTextField not to move and for the NSProgressControl to move left or right depending on the main window width, and for the NSSplitView to automatically size as it does now. Unfortunately I can't figure out how to set this behavior in Interface Builder and the help doesn't give any clue.

Any pointers would be most welcome.
Thanks.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Controlling control positions and size in a window
      • From: Daryn <email@hidden>
  • Prev by Date: Re: selecting a single cell in NSTableView?
  • Next by Date: Calculating paragraph numbers
  • Previous by thread: Re: two-part question: stylistic question+joint style
  • Next by thread: Re: Controlling control positions and size in a window
  • Index(es):
    • Date
    • Thread