The menu is not displayed in mac os 10.9.1 <p>In my application used "Application is agent(UIElement)" = YES.</p> <p>I use it to hide the second process. But first process need show.</p> <p>For show process I used code:</p> <pre><code>// display dock icon TransformProcessType(&amp;psn, kProcessTransformToForegroundApplication); // enable menu bar SetSystemUIMode(kUIModeNormal, 0); // switch to Dock.app [[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:@"com.apple.dock" options:NSWorkspaceLaunchDefault additionalEventParamDescriptor:nil launchIdentifier:nil]; // switch back [[NSApplication sharedApplication] activateIgnoringOtherApps:TRUE]; </code></pre> <p>The problem is that the menu is not displayed. But if you switch to some other program and back, the menu appears.</p>