Re: Determinating iChat status
Re: Determinating iChat status
- Subject: Re: Determinating iChat status
- From: Wade Tregaskis <email@hidden>
- Date: Tue, 1 Jun 2004 15:50:07 +1000
[NSClassFromString(@"AddressBookPeople") loadBuddyList];
[NSClassFromString(@"DaemonicService") connectToDaemonWithLaunch:YES];
IMService *service=[IMService mostLoggedInService];
int chatstatus=[service serviceLoginStatus];
Just a note, the above code (in fact any that tries to use
InstantMessage.framework) will just fail and cause exceptions if not
run from a GUI (possibly Cocoa-only) app. Something about an invalid
signature... I think it requires a plist file for the current app or
something. Dunno. Caused me hours of frustration, anyway. :)
Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.