[Dev] [UIDev] Item Collection inclusion/exclusion

Marcus Sundman sundman at iki.fi
Thu Jul 1 16:30:00 PDT 2004


On Friday 02 July 2004 00:14, Jed Burgess wrote:
> First, some background.  Item collections are initially populated by a
> rule, but later items can be added to/deleted from that collection by
> calling include()/exclude().  The item collection maintains three lists
> (results, inclusions, exclusions).
>[...]
> keep it on an exclusion list, then that exlusion list can grow to an
> unmanageable size.

Why not have the methods addInclude(), removeInclude(), addExclude() and 
removeExclude()? Then you can manage the includes and excludes any way you 
want.
There'd still be one issue, though: What if an item is both included and 
excluded? Obvious solution: adding an object to one list automatically 
removes it from the other (if present).


- Marcus Sundman


More information about the Dev mailing list