1

I need code to run every time the user switches to a different space. So if a user goes from space 1 to 2, my desired method should be called. What would this go under. I looked under NSWorkSpace but didn't see anything applicable How do?

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
Justin
  • 717
  • 1
  • 9
  • 15

1 Answers1

1

You looked right past it. The notification you're looking for is NSWorkspaceActiveSpaceDidChangeNotification.

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370