I'm experienced with iOS development in objective C and swift. Now I want to build a simple macOS application for personal use and when thinking about the user interface i want basically a sidebar with menu links and a right pane with the content. I've been playing with NSSplitViewController and the basics are working. However, let's say we have three menu items in our left sidebar e.g. Home Dashboard and Settings. The default one showing on the right is the HomeViewController, which i can do. Now when i click on Dashboard or Settings, I want the right part to load the DashboardViewController or the SettingsViewController and replace the HomeViewController. When i click Home, the HomeViewController is replacing the previous one.
So I was thinking I need to replace the viewController of one of the NSSplitViewItems (index 1) but can't make it work also it of course need to load the NSView for it from either the storyboard or a NIB.
Who can provide a working example please?