[ SOLVED ] How to make my app not appear in task switcher ( similar to background or “menu bar apps" such as dropbox )

I want my app to behave more like a background or menu bar app/process like Dropbox and not appear in task switchers or be visible in any way apart from being managed by means of a right hand side "extras" icon and menu. 


So for example there won't be any app menus to the right of  the apple menu and my "app" will never be in the "foreground". 


How does one do this in JUCE or OSX code ? 


The app cannot be set up as a true console type app because there will at times be calls to GUI APIs to show windows temporarily etc.