Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ruhi

macrumors member
Original poster
Jun 17, 2009
70
0
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.
 
You probably need to set it as the frontmost process:
Code:
[NSApp activateIgnoringOtherApps:YES];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.