I have an application that has two types of interfaces - it exists as a menubar application and a windowed application. However it cannot exist simultaneously in both states.
How can I allow the user to click on a button that allows him/her to change states?
For example if my application is currently a window, when the user clicks on the button I want it to change into a menubar application and the window should disappear. However if the user clicks again all menubar info should disappear and the window should reappear.
The application is very system heavy therefore I cannot afford for the menubar version and the windowed version to work simultaneously.
How would I accomplish this?
I am working on OSX Mountain Lion and need a solution in Objective-C/C.