views:

33

answers:

0

Hello,

I'm building an application that uses a NSStatusItem and run in the background. The problem I'm running into is entering text into a NSTextField.

I've got a menu item in my NSStatusItem which:

[NSApp activateIgnoringOtherApps:YES]
[prefPanel makeKeyAndOrderFront:nil]

It shows up fine, but when I try to enter text into the NSTextField which is inside the panel. It just writes to the XCode console (or what ever application I have open).

How do I allow an background application to take text input????

Thanks in advance, JPoz