if( returnCode != 0)
NSLog(@"Could not bring app to front. Error %d", returnCode);
// Bring the main window back up
[NSApp activateIgnoringOtherApps:YES];
[mainWindow makeKeyAndOrderFront: self];
In 10.5, however, this code no longer works 100%. The app window does
come to the foreground, but not its menu bar. To make the app menu
bar show up, one has to take the additional step of switching to some
other app and then switching back.
Does anyone know what needs to be done to bring the app menu bar back
to foreground with the app?