I am new to OSX App development and finds things a little different from that of iOS. I am trying to create a sample Menubar App. I can display a menu using the command
[statusItem setMenu: startMenu];
But i dont know how can i display a TabView instead of menu. Can some body help me with this.
where statusMenu is an outlet of NSMenu and statusitem is an object of NSStatusItem
You cant. You have to display it in a window, which you can open on the click of the status item.
You can make the window borderless.
1.
You can either use this one here, which is a NSTableView in a window, which can fake the layout of a
NSMenu:JGMenuWindow
Though I would not recommend that, because if Mac OS X has some layout changes, this will stay the same.
2.
Or you can use a normal window, which you customise, like here:
Popup