Re: Swapping views and autoresizing ....
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