Re: Determinating iChat status
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.