You can get notified of space changes by registering for NSWorkspace
's NSWorkspaceActiveSpaceDidChangeNotification
. There isn't a notification as such for Mission Control, but you might investigate whether NSWorkspaceDidActivateApplicationNotification
or other notifications can be used to determine what you need.
HTH