I am playing around with NSSplitView - quite successfully for now but here is my Problem:
My SplitView looks like this:
Test project here: https://www.dropbox.com/s/amz863l11nvkdir/TestNSSplitView.zip
I've implemented - (void)splitView:(NSSplitView *)splitView resizeSubviewsWithOldSize:(NSSize)oldSize
to stick the left and the right subview at the same size as before while resizing.
If I open the Window which contains the NSSplitView this message comes up in the console:
<NSSplitView: 0x107de1520>: the delegate <BRSchematicWindowController: 0x10ac11050> was sent -splitView:resizeSubviewsWithOldSize: and left the subview frames in an inconsistent state:
Split view bounds: {{0, 0}, {1068, 600}}
Subview frame: {{0, 0}, {182, 600}}
Subview frame: {{183, 0}, {640, 600}}
Subview frame: {{824, 0}, {243, 600}}
The outer edges of the subview frames are supposed to line up with the split view's bounds' edges. NSSplitView is working around the problem, perhaps at the cost of more redrawing. (This message is only logged once per NSSplitView.)
What is wrong here? I didn't get it even after reading this message...
PS: In the right splitView there is another NSSplitView this isn't the failure. I get this message even without this additional NSSplitView.