[Adium-devl] AIInterfaceController and opening (and moving) chat windows.

Evan Schoenberg evan at adiumx.com
Sat Jun 16 20:35:38 UTC 2007


On Jun 14, 2007, at 10:05 AM, Matt Handley wrote:

> The first operation looks to already have code written for it:
> [AIDualWindowInterfacePlugin moveChat:toContainerWithID:index:].
> However, when I use this, the PSMTabBar control is not updated
> correctly, or synchronized with the moved chat. What am I doing
> wrong? What do I need to do to inform the control that the order of
> its tabs needs to be different?

I think this method is only used at present when the user drags a tab  
to another window / a new window.  In that sense, the tab control  
started the action so knows about it...  so the method is probably  
incomplete in not notifying the interface plugin to notify the old  
and new containers that their contents changed, or in that the  
containers aren't noticing this themselves and propagating the change  
to the tab control.  (So it's not your fault that it's not working,  
but you'll likely have to implement that communication to make the   
method complete enough to use in a new context as you want to).

on the other hand, the Consolidate Chats code might indicate how this  
is being handled by some external code which moves chats around.

> The second operation <make/delete a chat
> at some location.> doesn't have code in AIInterfaceController (like
> the more generic openChat:). I'm planning of writing my own openChat:
> inContainerID: method (and adding it to the appropriate protocol),
> unless someone can tell me if a similar method already exists. Any
> suggestions?

I don't believe one does, since that's currently always handled  
automatically.  -[AIInterfaceController openChat:] should call your  
new method, passing in the containerId it determines to be appropriate.

-Evan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070616/93787064/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070616/93787064/attachment.sig>


More information about the devel mailing list