pbodsk / pomodoriclient

A OSX pomodoro client that can fetch other users pomodo session state from a pomodoro server that can be found here: https://github.com/pbodsk/pomodoriserver
1 stars 0 forks source link

delete current session when application terminates #11

Closed pbodsk closed 10 years ago

pbodsk commented 10 years ago

NSApplicationDelegate has the applicationWillTerminate: method. That could be used to stop and nil all timers and send a delete call to the server so the server will know that this user has left the building.

See: https://developer.apple.com/library/mac/documentation/cocoa/reference/NSApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSApplicationDelegate/applicationWillTerminate:

pbodsk commented 10 years ago

I think that should do it