[haiku-doc] Re: Finished initial docs for BHandler

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-doc@xxxxxxxxxxxxx
  • Date: Sat, 05 Jan 2008 18:49:40 +0100 CET

Hi Niels,

"Niels Reedijk" <niels.reedijk@xxxxxxxxx> wrote:
> > 2) the description to StartWatching[All](BMessenger ...) is a bit
> > misleading: you actually subscribe yourself with the "target" to 
> > watch
> > the specified state on the target handler, not vice versa. Same for
> > StopWatching[All](BMessenger ...).
> Ah, that makes a lot more sense with the code. So if Handler B wants
> to watch Handler A, Handler B does this->StartWatching(A)?

Only for the BMessenger version.

BHandler& a, b;
BMessenger am(&a), bm(&b);


Should be equivalent. It's not very clear, but that's how it works :-)

> Thanks for looking at the docs, I will update them later today.

Thanks much more for actually writing them :-)


Other related posts: