title: NSSplitView save and restore splitter position when switching between Vertical and Horizontal layout
body: <p>In my app I use NSSplitView which has ability to switch between vertical and horizontal layout using <code>- (void)setVertical:(BOOL)flag</code> method. The problem is that when user change layout, splitter always restore its position on 50%/50%.</p>
  
  <p>NSSplitView has an autosave possibility for its divider, but it doen't save values for both layouts. </p>
  
  <p>What is the best way to handle this? Save subviews rects in NSUserDefault on every resize and splitter move and restore them when layout switched? Is it looks good? Is there a better solution.</p>