views:

68

answers:

2

Let's say I want to write a simple Cocoa app to make the Spaces feature of Leopard more useful. I would like to configure each space to have, say, different

*screen resolutions *keyboard layouts *volume (for audio)

So there are two parts to my question: 1) I suppose there are ways to modify these three things independently of Spaces, right? If so, how? 2) How can I detect in my app when a space change occurs, and when that happens, determine what space the user just switched to? Does Leopard send out some distributed notifications or something?

+3  A: 

NSWorkspace posts a NSWorkspaceActiveSpaceDidChangeNotification on its own notification center, but only on Snow Leopard.

Peter Hosey
Yes, but that notification only tells you that the space changes. But there no userInfo dictionary with that notification with info like what is the current space, etc. So it's not really a powerful notification..
Enchilada
A: 

So no ideas? Maybe I have to resort to using Private API? Anyone with hints?

Enchilada