• 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
autoresizing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoresizing problem


  • Subject: autoresizing problem
  • From: Craig Hopson <email@hidden>
  • Date: Wed, 26 Oct 2005 15:57:55 -0600

I have a window which contains a view ('A'). For A the NSViewWidth & NSViewHeight autosize flags are set. When the window is resized, the view resizes appropriately in both dimensions.

I have a nib which contains a view ('B')
(which contains two sub views, one of which is embedded in a scroller).
For view B, the NSViewWidth autosize flag is set.


The nib file's owner is a controller, which has an outlet for B. When I create the controller, the nib is loaded. I then get B and call [ A addSubview:B ] followed by [ A setAutoResizeSubviews:YES ].

B is added to A. However, when I resize the window, B does not resize horizontally. Anyone have a guess what I'm missing?

BTW, I've tried probably every possible combination of autoresize flags for B in the nib. The behavior does not change, so I don't think the problem is just that I have the wrong flag set.

Thanks in advance,
-Craig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: autoresizing problem
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: OpenGL 2.0 for Apple?
  • Next by Date: Re: NSException raised within [NSView setHidden]
  • Previous by thread: Re: OpenGL 2.0 for Apple?
  • Next by thread: Re: autoresizing problem
  • Index(es):
    • Date
    • Thread