I want to write a custom alarm for a Mac that awakes the mac from sleep. I think it should be done as the Aurora app seems to do it.
What methods/classes do I need to use?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can be implemented through IOPMSchedulePowerEvent routine. Unfortunately, the routine requires root access. Authorization to execute privileged operation can be done using the Authorization Services framework. One should read “Authorizing in a Simple, Self-Restricted Application” and “Authorizing in a Factored Application.”.