I’m curious to know how to create the sidebar used in twitter and many other Apps 
What i’m asking for is not about graphics, but i’d like to know which is the better way to create a structure to permit switching between different sections.
I don’t like asking for help without start by an opinion, thus, this is mine:
-
Generic view structure would be created with a
NSSplitView -
I Need a
generic Modelclass managing sections and taking a pointer to the current one.
Here i’d add informations about image used for any section etc… (something like a custom UITabBarController for iOS. -
The
Left viewof thesplit Viewwould be connected to thegeneric Modeland would be able to present its section and get the current one. Pushing a button will ask thegeneric Modelto change the current section and load content in theRight view(some doubts about this use a Model that way 😛 probably not the better one) -
The
Right viewloads other view controller as requested byleft View(i have may doubts about how do that!)
I’m on the right way ? how would you build a structure like that of Twitter ?
(Off topic: I’d really appreciate correction of my terrible English to keep this question suitable for all users)
Here’s what you need https://github.com/erndev/EDSidebar