Bring NSRunAlertPanel to Front in Background Process
Posted
by mon4goos
on Stack Overflow
See other posts from Stack Overflow
or by mon4goos
Published on 2010-05-05T18:34:29Z
Indexed on
2010/05/05
18:38 UTC
Read the original article
Hit count: 331
If you call NSRunAlertPanel() from a background process in Cocoa, the dialogue does not come to the front and instead stays behind other windows. This post (http://stackoverflow.com/questions/2639479/nsrunalertpanel-shows-up-behind-the-active-window) shows that you can bring the dialogue to the front if you convert the process to a foreground process. If you keep the process a background process, however, is there any way to achieve this behavior?
© Stack Overflow or respective owner