James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

macOS

Long-running Operations on macOS and iOS with NSProcessInfo

One issue that sometimes comes up in app development is keeping your app alive and running during long running processes. In my case with My Stream Timer [https://www.mystreamtimer.com], when the user starts a timer, it needs to keep running no matter what. My first solution was to simply turn on Screen Saver mode. var appDelegate = ((AppDelegate)NSApplication.SharedApplication.Delegate); appDelegate.MainWindow.Level = NSWindowLevel.ScreenSaver; This solution "works" but has the si…

James Montemagno James Montemagno