This is for the sake of simple illustration you could also choose to prevent App Nap only while your app is performing certain critical activities. The API is not difficult to use, but some app developers are unaware of its existence, so I just wanted to mention it here.īelow is some sample code to prevent App Nap while the app is running. Fortunately, the 10.9 SDK added API to prevent App Nap programmatically. For apps that are compiled with the Mac OS X 10.9 SDK or later, however, the Finder option no longer appears. You can see apps going in and out of App Nap by watching the Energy tab in Activity Monitor.įor apps that were compiled with the Mac OS X 10.8 SDK or earlier, the "Prevent App Nap" option appears in the Finder Get Info window, which allowed users to manually disable App Nap. ![]() Unfortunately, App Nap was designed as opt-out rather than opt-in, which means that App Nap can affect an app even if the developer didn't expect or plan for it. This can cause problems if the app is performing time-sensitive tasks, which may get delayed or interrupted. Under certain conditions, such as when an app is not visible on the screen, App Nap automatically puts the app into low power state in order to extend battery life. Articles index Prevent App Nap Programmatically AugBy Jeff Johnson (Developer of StopTheMadness and Underpass)Īpp Nap is a technology introduced in Mac OS X 10.9 Mavericks.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |