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;
|
IONotificationPortRef notify;
|
||||||
io_object_t iterator;
|
io_object_t iterator;
|
||||||
if (fRootPort = IORegisterForSystemPower(self, & notify, sleepCallBack, & iterator))
|
if (fRootPort = IORegisterForSystemPower(self, & notify, sleepCallBack, & iterator))
|
||||||
{
|
|
||||||
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify),
|
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify),
|
||||||
kCFRunLoopCommonModes);
|
kCFRunLoopCommonModes);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
NSLog(@"Could not IORegisterForSystemPower");
|
NSLog(@"Could not IORegisterForSystemPower");
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue