osx - How do I programmatically move Spaces' focus to a particular Space a window I want to focus on lives on Mac OS X with Objective-C? -


in osx menubar application, user can open particular application nswindow dropdown menu item. being menubar application, accessible any desktop (a desktop in mission control 'space').

i've got reference window programmatically.

say user has clicked menu item while on desktop 1, active desktop. naturally, nswindow created, opened, brought front. lives on desktop 1

the user browses desktop 2, it's active desktop.

the user clicks on menu item again.

since window open on desktop 1, i'd spaces automatically bring set active desktop desktop 1 again, user can see window he/she wanted see.

how programmatically achieve objective-c cocoa in osx?


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -