Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preventing sleep, UpdateSystemActivity(), and 64 bit



Ack, at 11/23/07, Sean McBride said:

Did you try to actually link a 64 bit app that call's
UpdateSystemActivity()?  It doesn't work.

In OSServices.h you'll see:

#if !__LP64__
#ifndef __POWER__
#include <OSServices/Power.h>
#endif

Looks like an oversight, kind of. Most of the other headers I've seen include the ifdef's directly in the header itself.


Ie, if you include Power.h more directly (you'll have to add the subframework to the header search paths in Xcode), it should work.

However, if I copy the prototype into my own .m file, it does link

This is true of a lot of things... --


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Preventing sleep, UpdateSystemActivity(), and 64 bit (From: "Sean McBride" <email@hidden>)
 >Re: Preventing sleep, UpdateSystemActivity(), and 64 bit (From: Rosyna <email@hidden>)
 >Re: Preventing sleep, UpdateSystemActivity(), and 64 bit (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.