• 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: Determinating iChat status
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determinating iChat status


  • Subject: Re: Determinating iChat status
  • From: Aidas Dailide <email@hidden>
  • Date: Tue, 1 Jun 2004 02:16:31 +0300

Thanks Yann!

Class-dump and iChat Status really helped. Here is the code that works:

[NSClassFromString(@"AddressBookPeople") loadBuddyList];
[NSClassFromString(@"DaemonicService") connectToDaemonWithLaunch:YES];

IMService *service=[IMService mostLoggedInService];
int chatstatus=[service serviceLoginStatus];

The end,
Aidas

On 2004.5.31, at 12:27, Yann Bizeul wrote:

> You should be able to do this using private Apple framework.
> There is a prefPane called iChat Status as I remember, the author give
> the source to whoever ask for it, and he use
> InstanMessaging.framework. Using class-dump, you should be able to
> determine what would be usefull to get the status
>
> Best regards,
>
> Le 31 mai 04, ` 10:33, Aidas Dailide a icrit :
>
>> Hi,
>>
>> I would like to determinate iChat status (available/offline/away).
>> I've tried to use AppleScript to do so, but unfortunately to make it
>> work iChat has to be opened. Is there any way to determinate iChat
>> status without opening iChat? I've tried to play with iChatAgent, but
>> still nothing. Any ideas?
>>
>> Regards,
>> Aidas
>> _______________________________________________
>> cocoa-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
>>
>>
>>
> --
> Yann Bizeul - yann at tynsoe.org
> http://projects.tynsoe.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Determinating iChat status
      • From: Wade Tregaskis <email@hidden>
    • Re: Determinating iChat status
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Re: How to include InternetConfig.h
  • Next by Date: Meaning of error message: ___gxx_personality_v0
  • Previous by thread: Re: How to include InternetConfig.h
  • Next by thread: Re: Determinating iChat status
  • Index(es):
    • Date
    • Thread