I have a fairly simple question. How would I programmatically add/remove the workspaces found in mission control. I have seen this post here about changing to another space programmatically, and I think that it could be something similar to the answer, using CGSPrivate.h
. I don't need to worry about private frameworks, as it's not going on the app store.
EDIT: I also saw a post about modifying the com.apple.spaces.plist
and adding workspaces, but I have no Idea how I would add that, as the dict has UUID and other things.
While in Mission Control this is the Accessibility Hierarchy of Dock (on my Mac, OS X 10.10):
The location of the workspace buttons is the middle of the remove button.
My test app: