(OSX) Implement applicationDidBecomeActive and applicationWillResignActive