Quote:
Originally Posted by flamingliquid
Just for your knowledge, the widget screen is formally known as the Dashboard, just to help you find answers in the future
I just did a quick test and
Code:
- (void)applicationDidResignActive:(NSNotification *)aNotification
is called when I swipe to the Dashboard. Is this working for you?
|
Hi and thanks for taking the time to answer.
I didn't realise that was the dashboard...

(What's the screen called when you do a 3 fingered wipe vertically on the trackpad and see all the windows? I don't get any notifications for that either - my game carries on inside a thumbnail...)
Anyway I tried adding that function to my code and nothing happens, I've also tried setting a notification explicitly (is just adding the function all I need?) like below:
Code:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(PauseGame)
name:NSApplicationDidHideNotification
object:self];
I also set various other notifications in the same block of code and they all seem to work fine (i.e. NSViewGlobalFrameDidChangeNotification).
Perhaps there's something else I need to do?