0

I have an NSSplitView covering all of my window.

The NSSplitView contains two (vertical) subviews, one next to the other.

When the user resizes the window, I want the one on the left to remain intact. How is that doable?


P.S. Not the AutoLayout-way.

Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223

1 Answers1

0

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSWindowDelegate_Protocol/index.html#//apple_ref/doc/uid/TP40008202-CH1-SW6

Implement window delegate.

- windowWillResize:toSize: in this method save the width of the one on the left

- windowDidResize:in this method restore the width of the one on the left

Tyler Liu
  • 19,552
  • 11
  • 100
  • 84