Add names to buttons.
This commit is contained in:
parent
b1322facad
commit
5f8e0d613e
|
@ -147,10 +147,8 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
IONotificationPortRef notify;
|
||||
io_object_t iterator;
|
||||
if (fRootPort = IORegisterForSystemPower(self, & notify, sleepCallBack, & iterator))
|
||||
{
|
||||
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify),
|
||||
kCFRunLoopCommonModes);
|
||||
}
|
||||
else
|
||||
NSLog(@"Could not IORegisterForSystemPower");
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue