[Adium-devl] Subgroups?

Evan Schoenberg evan.s at dreskin.net
Sat Sep 30 14:42:35 UTC 2006


On Sep 30, 2006, at 12:01 AM, David Smith wrote:

> 	Question about the code... what does "subgroups" in -
> (NSMutableArray *)allContactsInGroup:(AIListGroup *)inGroup subgroups:
> (BOOL)subGroups onAccount:(AIAccount *)inAccount; refer to? Is it a
> leftover from nested groups?

Yes and no. We still have a single set of nested groups -- the  
contact list is an AIListGroup which contains other AIListGroups.  It  
can also contain contacts, theoretically, at the 'root' level, though  
I think account code is currently carefully avoiding that.  Also,  
with subGroups:YES, it includes the contents of AIMetaContacts in the  
return array.

So if subGroups == NO, you get only the objects immediately in the  
passed AIListGroup. If that group is [[adium contactController]  
contactList] you end up with an array of just the groups; if it's  
another group you get just its immediate contents.
If subGroups == YES, you get only AIListContacts which are somewhere  
in the group->group->metacontact heirarchy from the passed group.

-Evan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20060930/c4c5102b/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/20060930/c4c5102b/attachment.sig>


More information about the devel mailing list