On Oct 24, 2009, at 9:53 AM, Stamenkovic Florijan wrote:

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.

And possibly you are assuming the wrong coordinate system.


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

You should read the whole thing, but I'm guessing the "View Geometry" section will be especially helpful. Also search the docs for "autoresizingMask".

--Andy


F
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com

This email sent to ag...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to