views:

51

answers:

0

I have a vertical split view (actually BWSplitView) with two subviews. One of them should keep its width while window is resizing and second changes its width automatically. I configured it in Interface Builder and everything works great until I tried to change one of subviews programically using NSView's replaceSubview:with: method. After that left subview no longer keep its size - why?

Should I set subviews programically in another way? I know that I could resolve the problem just using NSSplitView and implementing NSSplitViewDelegate methods (and then it works like it should - I checked that) but I'd prefer not to have to do that.