PDA

View Full Version : Show window on top and active




ruhi
Aug 18, 2009, 04:33 AM
hello all,

My cocoa application is running as an agent and it is accessed by a hotkey.

i want that on pressing hotkey the window should be displayed on top of all other window and should be the active window also. How to so this3 makekeyWindow is not working for me?

please help!

Thanks,
Ruhi.



kainjow
Aug 18, 2009, 11:10 AM
You probably need to set it as the frontmost process:
[NSApp activateIgnoringOtherApps:YES];