I am writing a Mac app with a typical navigation pane on the left - and a content pane on the right. I want the pane to start off with the navigation pane being 1/4 of the width, and the content pane being 3/4 of the width, but I want you to be able to drag the size of the pane, ie - just like every other app ever.
so - I found HSplitview - which seem to be what I want - I do
HSplitView()
{
NavigationPane()
ContentPane()
}
and it sort of works. But really doesn't - the problems I need to fix:
- when it starts, the navigation pane is tiny - more like 1/20 than the 1/4 I want
- there's a strange spacing between the navigation pane and the content pane, to the left of the splitter
- the splitter that you drag seems to be of zero width - I have to exactly align the cursor with the border of the content pane to allow it to drag
- I want to save and then restore the position if the user drags it
so - any idea how I achieve what I want with the hsplitview? The weirdest thing is I don't seem to be able to find any documentation on it whatsoever - the official apple doc basically just says "yes, there is a class with that name."