Hiding the dock icon without hiding the menu bar
问题 I use the ideas in this thread to hide the dock icon of my app optionally . If the dock icon is shown after all, the menu bar should be shown too. Only with Jiulong's answer I haven't been able to make this work. The menu bar is still hidden. So basically 'Application is agent' is set to '1' in the InfoPList, and this code is used : if (![[NSUserDefaults standardUserDefaults] boolForKey:@"LaunchAsAgentApp"]) { ProcessSerialNumber psn = { 0, kCurrentProcess }; TransformProcessType(&psn,