Key Window for background application

Posted by jpoz on Stack Overflow See other posts from Stack Overflow or by jpoz
Published on 2010-04-20T03:24:02Z Indexed on 2010/04/20 3:33 UTC
Read the original article Hit count: 220

Filed under:

Dear Cocoa Developers,

I'm creating a backgrounded cocoa application. The only thing that it's missing is the ability to take text inputs!

I'm making the application backgrounded by setting "Application is background only" in the Info.plist

But no matter what I do I can't make any window the keyWindow.

makeKeyWindow
makeKeyAndOrderFront

Both don't work...

I know apps can do this, anyone have any idea how you can get background application to have a key window?

Thanks, JPoz

© Stack Overflow or respective owner

Related posts about cocoa