[Adium-devl] Subgroups?

David Smith catfish.man at gmail.com
Sat Sep 30 19:57:57 UTC 2006


On Sep 30, 2006, at 7:42 AM, Evan Schoenberg wrote:

>
> 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
>

Yeah, I looked closer at the method after writing this and figured  
out what it was doing (hence my commit rewriting it last night).  
Thanks though :)

										David




More information about the devel mailing list