Re: Preventing system sleep, QA1340 code does not seem to work
Re: Preventing system sleep, QA1340 code does not seem to work
- Subject: Re: Preventing system sleep, QA1340 code does not seem to work
- From: Marc Epard <email@hidden>
- Date: Tue, 12 Dec 2006 15:47:51 -0600
- Thread-topic: Preventing system sleep, QA1340 code does not seem to work
on 12/12/06 3:42 PM, Sean McBride wrote:
> I copy and pasted the code from [QA1340] and put it in a brand new
> Xcode 'CoreFoundation tool' project. But the callback function
> specified to IORegisterForSystemPower() is never called! I've put a
> breakpoint, printf, and assert(0).
>
> Is anyone using this code? I've tried in 10.3.9, 10.4.8, and 9a303 and
> it just doesn't seem to work at all.
I'm using it successfully. I'm not preventing sleep, but my callback does
get called, at least on 10.4.8.
-Marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden