• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UpdateSystemActivity replacement in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UpdateSystemActivity replacement in Cocoa?


  • Subject: Re: UpdateSystemActivity replacement in Cocoa?
  • From: Kevin Wojniak <email@hidden>
  • Date: Mon, 5 Apr 2010 15:02:49 -0700

Including it isn't enough, you still need to link it with your other frameworks. I did this with a blank project and got no errors with a 64-bit build. Anyways, the IOKit function is probably the better way to go :)


On Apr 5, 2010, at 2:16 PM, Andy O'Meara wrote:

>
> On Apr 5, 2010, at 3:31 PM, Kevin Wojniak wrote:
>
>> Looks to me like it's still available for x86_64. Are you linking with the CoreServices framework?
>>
>> Kevin
>
>
> Yeah, I've got:
>
> #include <CoreServices/CoreServices.h>
>
> void foo() {
>    UpdateSystemActivity( UsrActivity );   // Error: 'UpdateSystemActivity' was not declared in this scope
> }
>
> Also, if I declare it, I get a link error saying the symbol doesn't exist.
>
> It'd be nice to use UpdateSystemActivity(), but it seems Sean's IOKit method the only way to proceed (thanks Sean!).
>
> Andy
>
>
>>
>>
>> On Apr 5, 2010, at 12:36 PM, Andy O'Meara wrote:
>>
>>>
>>> Hey cocoa crew, quick question...
>>>
>>> I'm looking for a Cocoa replacement for Carbon's UpdateSystemActivity() since it appears to be unavailable under x86_64.
>>>
>>> Any help or suggestion would be appreciated!
>>>
>>> Thanks,
>>> Andy
>>>
>>> _______________________________________________
>>>
>>> Cocoa-dev mailing list (email@hidden)
>>>
>>> Please do not post admin requests or moderator comments to the list.
>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UpdateSystemActivity replacement in Cocoa?
      • From: "Sean McBride" <email@hidden>
References: 
 >UpdateSystemActivity replacement in Cocoa? (From: Andy O'Meara <email@hidden>)
 >Re: UpdateSystemActivity replacement in Cocoa? (From: Kevin Wojniak <email@hidden>)
 >Re: UpdateSystemActivity replacement in Cocoa? (From: Andy O'Meara <email@hidden>)

  • Prev by Date: Re: Problems with repetetive execution of netstat using NSTask and NSTimer
  • Next by Date: Re: Modal Window with dynamic nstextfield
  • Previous by thread: Re: UpdateSystemActivity replacement in Cocoa?
  • Next by thread: Re: UpdateSystemActivity replacement in Cocoa?
  • Index(es):
    • Date
    • Thread