[haiku-commits] Re: r36868 - haiku/branches/features/stack-and-tile/src/servers/app

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 21 May 2010 13:09:35 +0200

David McPaul <dlmcpaul@xxxxxxxxx> wrote:
> On 21 May 2010 07:57, Clemens Zeidler <clemens.zeidler@xxxxxxxxxxxxxx> 
> > wrote:
> > Am 21.05.2010, 09:47 Uhr, schrieb Stephan Assmus <superstippi@xxxxxx>:
> > > >> No, I mean something else. If you have two AnchorList instances, 
> > > list A
> >> and
> >> list B, and one item is in List A, then if you invoke B-
> > > >HasItem(item), it
> >> will return true, even though the item is really in list A.
> > Ah I see, ValidateItem is more what you aspect from a HasItem 
> > function.
> Well I would expect that invoking HasItem on a list returns false if
> the item is not in the list.
> 
> If HasItem is expected to check all lists for the item then it should
> not be at the list level but at a higher level.

The WindowList (where this is coming from) is a very specialized list 
that does exactly what it should in the context. And in this small 
world, there is always one particular anchor for each list :-)

Bye,
   Axel.


Other related posts: