Show window on top and active

Discussion in 'Mac Programming' started by ruhi, Aug 18, 2009.

  1. ruhi macrumors member

    Joined:
    Jun 17, 2009
    #1
    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.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You probably need to set it as the frontmost process:
    Code:
    [NSApp activateIgnoringOtherApps:YES];
     

Share This Page