tricky window status

  • Hi,

    my application pops up and becomes keywindow when a hotkey is pressed.

    when the hotkey is pressed i do:

    [NSApp activateIgnoringOtherApps:true];
    and
        [[self window] makeKeyAndOrderFront:self];

    this works fine but the behaviour is that the current applications window
    looses its focus. i want the behaviour to be like spotlight. when you open
    it the current application you are using does not loose its focus.

    hope someone can help me with this topic.
    thanks in advance.