• 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: Thu, 3 Jun 2004 01:56:23 +1000

As one person suggested, this might be Apple's way of preventing people like me playing funny buggers with their frameworks. I find that a humorous suggestion; as good as any other. :)

Anyway, apparently it didn't work, because I've resolve the issue. Thanks to Sampler (my favourite application of late, second only to clas-dump ;) ) and iChat, and half an hour of staring at the resulting output (my eyes!), I figured out that you have to call the _syncWithRemoteBuddies instance method (on IMService) to force it to update. Why this isn't called the first time I don't know... I think it may well be, but still suspect it's a runloop issue, as it looks like all the communication with the iChat daemon is done using Distributed Objects... I did try letting the next pending runloop event run before I tried to use anything (after initialising it), but that didn't work... as this was at app launch, perhaps there were other things already queued. Doesn't matter, anyway - _syncWithRemoteBuddies is synchronous and does all the dirty work for you.

FWIW, I might take this thread off list, as I doubt everyone on Cocoa dev particularly cares about further details. If anyone already has a suitable forum to take this to, please do speak up. Otherwise, perhaps I'll start a Sourceforge project or somesuch.

As an aside, for those worrying I'm trying to undermine Apple's authority and bring about world destruction ;), all I'm trying to do is figure out how to get the same sort of iChat interactive functionality you get from Mail - i.e. the ability to see who in the address book (or some arbitrary email) is online. I've got that now. I'll clean up the code a bit tomorrow or the day after, and anyone interested can contact me... I'll probably put it up on my web page eventually anyway, but if you bug me I'll get it done sooner. :)

For people who want to make their own iChat clones, I can tell you it can be done - you've even got most of the UI elements in the framework for you - but I'm sure as gumnuts not going to do it for you... there's over 200 classes (and categories) in the InstantMessage framework. :)

Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?

P.S. Did anyone else know that iChat has built in file sharing, as in actual browsing & downloading, not just user-initiated ("push") transfer? Apparently it does, going by the various methods for it. It also has some sort of music streaming thing too... it'd be interesting to play with that stuff, although I suspect it's probably just an unused tie-in to iTunes. Nonetheless, I'll give it a good prod if I get some spare time. :)

P.P.S. "Sure as gumnuts" is a perfectly valid Australian colloquialism. Okay, fine, I made it up, but you know what the real expletive was. ;)
_______________________________________________
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: Determinating iChat status
  • Next by Date: Re: Password!!!!
  • Previous by thread: Re: Determinating iChat status
  • Next by thread: Re: Determinating iChat status
  • Index(es):
    • Date
    • Thread