• 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: Swapping views and autoresizing ....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swapping views and autoresizing ....


  • Subject: Re: Swapping views and autoresizing ....
  • From: Darkshadow <email@hidden>
  • Date: Wed, 17 Nov 2004 20:07:46 -0500

You need to call -setAutoresizesSubviews:YES to both the superview and the subviews you're swapping in and out. Also, if the superview isn't a set size (it's resizable), you may want to do [subview setFrameSize:[superview frame].size] when you swap them, so that the subview will be the right size.

Darkshadow (aka Mike Nickerson)

On Nov 17, 2004, at 9:12 AM, Dariusz Krzykowski wrote:

Hi,

I'm trying to swap views into a view which is placed in a window.
The window and the supeview are resizeable (works correctly)
and the swapped in subview (instance of NSView which encloses several controls)
should also resize - but they don't ....


Any ideas ....

thanks in advance
dariusz

_______________________________________________
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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Swapping views and autoresizing ....
      • From: Dariusz Krzykowski <email@hidden>
    • Re: Swapping views and autoresizing ....
      • From: Dariusz Krzykowski <email@hidden>
References: 
 >Swapping views and autoresizing .... (From: Dariusz Krzykowski <email@hidden>)

  • Prev by Date: Question about the NSPrintPanel
  • Next by Date: RE: how to make a finder-like button
  • Previous by thread: Re: Swapping views and autoresizing ....
  • Next by thread: Re: Swapping views and autoresizing ....
  • Index(es):
    • Date
    • Thread