Re: Force subviews to stay in place during live resize
Re: Force subviews to stay in place during live resize
- Subject: Re: Force subviews to stay in place during live resize
- From: Stamenkovic Florijan <email@hidden>
- Date: Sat, 24 Oct 2009 09:53:56 -0400
On Oct 24, 2009, at 08:42, Zephyroth Akash wrote:
I'm creating a view containing different subviews programmatically.
Like this:
1 - NSOutlineView
2 - NSView
3 - NSView
This tells almost nothing to the list. Post code.
Added according to the choice made in NSOutlineView:
4 - NSView
5 - NSView
6 - NSView
The window is only resized in height.
The fact is that when 4, 5 and 6 are added and that the window
resize, 1,2 and 3 don't stay in place during the animation.
They seem to be removed and then the animation show 6, 5, 4, 3, 2
and 1 ....
How can I do to force 1, 2 and 3 to stay where they are during the
live resize ?
This is most likely happening because you are not configuring the auto-
resizing for the subviews properly.
Seeing that you most likely did not read the following yet, do it now,
start to finish:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaViewsGuide/index.html
F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden