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

Re: Controlling control positions and size in a window


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

Yes, I saw that site after it was referenced in an earlier message. The problem is that everything looks set correctly as far as I can see in IB. Here's the layout:

NSWindow
NSView (Content View)
NSSplitView
NSTableView
NSTextView
NSProgressIndicator
NSTextField

The NSSplitView has the springs set within the center part and no springs around it. The NSProgressIndicator and NSTextField are all struts. The NSView (Content View) has no means of setting sizing and NSWindow has springs around it. So I'm somewhat at loss as to why the NSProgressIndicator and NSTextField are being automatically adjusted.
Thanks!



On Jan 28, 2004, at 11:23 PM, Daryn wrote:

You need to the springs & structs correctly. See " How do I set up the springs and struts so my views autosize?" at:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/ IBTips/Articles/FreqAskedQuests.html

On Jan 29, 2004, at 12:47 AM, Steve Palmer wrote:

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.
_______________________________________________
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>
References: 
 >Controlling control positions and size in a window (From: Steve Palmer <email@hidden>)
 >Re: Controlling control positions and size in a window (From: Daryn <email@hidden>)

  • Prev by Date: Re: Controlling control positions and size in a window
  • Next by Date: Re: Compatability issues with IE v5.2.3 as compared to v5, v5.2.1,v5.2.2 [Panther Issues]{UNSOLVED- FrameWork Problem}
  • Previous by thread: Re: Controlling control positions and size in a window
  • Next by thread: Re: Controlling control positions and size in a window
  • Index(es):
    • Date
    • Thread