Questions tagged [mission-control]

For OS X Lion Apple took Expose, Dashboard and Spaces and rolled them all together into one feature called Mission Control.

Using a trackpad gesture or a keyboard shortcut, Mission Control presents you with a bird's eye view of your running applications. Arranged in a row along the top of the screen are all your open spaces. Hovering the mouse cursor in the top right corner causes a large plus sign to appear, click the plus sign to add a new space.

In the centre of the screen miniature windows of all running apps are displayed. They can be dragged to a new space, temporarily zoomed by hovering the mouse over and pressing the space bar or selected and brought to the front by clicking.

Depending on your preferences the left most space is designated for the widget Dashboard. Again, a simple trackpad gesture or keyboard shortcut will move left or right to the next available space.

OS X Lion Mission Control

25 questions
50
votes
9 answers

OSX Lion AppleScript : How to get current space # from mission control?

I'm trying to figure out how to get the current space # from mission control. Source would be helpful, but more helpful would be info on how to figure this out myself. I've written a few applescripts, but more often than not it seems like any time…
user578895
25
votes
1 answer

Manipulate OS X windows with script

Ok, so I'm trying to make my setup super simple by creating a script that I can run in the morning that will launch all the applications that I use in the day and lay them out across my 'spaces' how I like them. This was going ok and I was easily…
George Green
  • 4,807
  • 5
  • 31
  • 45
19
votes
2 answers

How can I programmatically add a space to mission control?

I want to create a new space (and also be able to delete it later), without having to go through the standard misson control gui. Is there any way to do this programmatically? Either via terminal commands, applescript or some cocoa?
Dag Stuan
  • 191
  • 1
  • 4
9
votes
2 answers

Moving a Window to a New Space in Mission Control

I would like to write a small utility that moves a window from one space to another in OS X Lion. I don't care if the utility is written in AppleScript or Objective-C. What I can't seem to figure out is given a window, how can I move it to a…
LandonSchropp
  • 10,084
  • 22
  • 86
  • 149
7
votes
1 answer

Capture all NSWindows as active images like Mission Control in Mac OS X

I'm looking to aggregate live representations of all windows. Much like Mission Control (Exposé), I want to extremely quickly access the image buffer of any given NSWindow or screen. Ideally, I want to composite these live images in my own OpenGL…
Skyler
  • 612
  • 6
  • 12
6
votes
3 answers

Keeping window on top when switching spaces

I have created a window using -[NSWindow setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces]. It only does half of what I want, though: when I switch spaces, the window also switches spaces (as expected), but my window moves to the…
George
  • 4,189
  • 2
  • 24
  • 23
5
votes
3 answers

How to get the current workspace programmatically on macOS

I would like to be able to tell at any time which mission control workspace the user is currently using programmatically on macOS 10.13. I could not find any working answer during my search. Any langage will do, and any workspace identifier works…
Louis M
  • 4,036
  • 4
  • 21
  • 25
5
votes
3 answers

Add/remove workspace to mac programmatically

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…
Minebomber
  • 1,209
  • 2
  • 12
  • 35
3
votes
0 answers

Show NSWindow when Mission Control/Exposé "Show Desktop" is active

I am building a Cocoa application that allows you to drag and drop files from a NSTableView to your computer. Personally, and I know I'm not alone, when I use applications like this I grab the files, invoke the "Show Desktop" hotkey which makes all…
nrj
  • 1,701
  • 2
  • 22
  • 37
3
votes
0 answers

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 my OSX menubar application, the user can open a particular application NSWindow from a dropdown menu item. Being a menubar application, this is accessible from any Desktop (a Desktop as in a Mission Control 'Space'). I've got a reference to the…
fatuhoku
  • 4,815
  • 3
  • 30
  • 70
3
votes
0 answers

Interfacing with elements of GUI from Mac OS X Lion 1.07

How do you interface with a lot of the things that make up the OS X GUI (in particular, Mission Control)? Apple doesn't seem terribly open to developers trying to mess with their stuff, so I can't seem to find a public API to it anywhere. Really, I…
3
votes
0 answers

NSWindow at desktop level in Mission Control

I am making an application to replace the wallpaper on OS X with an interactive application. When I use hot corners to bring up Mission Control, the application window remains stationary and at the same size (takes up the entire screen). I had to…
Justin
  • 2,122
  • 3
  • 27
  • 47
2
votes
0 answers

Manipulating "spaces" to swipe faster

When making an app how do I communicate to spaces to change from desktop 1 to desktop 2? Do I do it through the plist? com.apple.spaces.plist seems to record ever time I open a new space, but where do I go from there? Additionally I noticed that if…
HelloWorld
  • 101
  • 8
2
votes
1 answer

OSX: Monitoring Event when Mission Control is activated

I am trying to listen to Mouse Event and Keyboard Event by attaching global event listener, as describe in this great thread. However, when Mission Control is called, it seems that it blocks my listeners. I really appreciate any suggestion on how to…
bizi
  • 3,398
  • 2
  • 27
  • 28
2
votes
0 answers

How can I capture the feed of a Space and embed it in an NSView similar to Mission Control Space previews?

What I'd like to do is display a Desktop preview of another Space the exact same way the current implementation of Spaces shows previews of all other Desktops. I've provided a graphic at the bottom for visual reference. You can see on Desktop 1…
Ian K
  • 137
  • 1
  • 10
1
2