osx - Cocoa & Swift. How to show window without deactivating other window -


i have uielement set yes in info.plist. registered hotkey. when it's pressed, calls nswindowcontroller object , shows window.

but must call nsapp.activate(ignoringotherapps: true) after mainwindowcontroller.showwindow(self) , causing other windows blur.

i want create window not change other window's status can focus on (or receive local keyboard events), like alfred or spotlight does.

screenshot 1
when alfred called out, chrome not blur. when hit keyboard, typed in alfred instead of chrome's input field.

screenshot 2
when press [esc], alfred hides. chrome keeps activated , text field still focused on.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -