CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

OSXPreventSleep 0.2.0

OSXPreventSleep 0.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2016

Maintained by Jindrich Sarson.



  • By
  • Jindrich Sarson

Example

This simple class allows to disable automatic sleep mode on OS X. Handy when developing app thats playing video, shows slideshow etc.

  [OSXPreventSleep instance].preventSleep = YES // disable sleeping of OS X

  [OSXPreventSleep instance].preventSleep = NO  // enable sleeping of OS X

Installation

OSXPreventSleep is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "OSXPreventSleep"

Author

Jindrich Sarson, [email protected]

License

OSXPreventSleep is available under the MIT license. See the LICENSE file for more info.