I'm using sandboxing in for my Mac app. I need to set a property to IOKit like so,
IORegistryEntrySetCFProperty(reg, CFSTR("IORequestIdle"), kCFBooleanTrue);
Because of app sandboxing, the system will not allow me to do it. If I turn off app sandboxing, the property is set properly.
The error message I get in the console is as follows,
deny iokit-set-properties IORequestIdle
Is there a way for me to set a temporary entitlement so that I can do this properly. If so, how do I go about doing so?