• 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: 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.


References: 
 >Re: Determinating iChat status (From: Aidas Dailide <email@hidden>)

  • Prev by Date: Re: cocoa and database
  • Next by Date: Re: Determinating iChat status
  • Previous by thread: Re: Determinating iChat status
  • Next by thread: Re: Determinating iChat status
  • Index(es):
    • Date
    • Thread