[interfacekit] Re: BHandler::StartWatching()

"Ingo Weinhold" <bonefish@xxxxxxxxxxxxxxx> wrote:
> Here comes the truth: The watching stuff works bidirectional. Yep, it 
> really does. The only reason, why it didn't in my test app, is that I 
> accidentially removed the invocation of the superclass version of 
> MessageReceived() in the TestApp class.

Damn, I did the exact same mistake in my test app ;-))

> To state it clearly: Both, the BHandler on which StartWatching() is 
> invoked and the target (the first parameter) act as observable and as 
> observer at the same time. Subsequent invocations of SendNotices() on 
> any of them causes a notification message to be sent to the other 
> one. 
> Bug or feature=3F -- I've no idea.

So at least the 'OBST' & 'OBSP' messages make more sense. But I think 
it sounds more like a bug that anything else - I've had a look at some 
of the other StartWatching() mechanisms in the Be API (like the one in 
the clipboard, for example), and they are all working like Ingo thought 
it would.

Since we have to be compatible, we must implement both versions, but we 
should explicetly state that in the documentation - it should be much 
clearer than what the BeBook has to say.
BTW who (if anyone) is working on the new book, and how can he do his 
work correctly (without interference from the developers I think he 
will just copy all the bugs that are in the BeBook)=3F

Adios...
   Axel.



Other related posts: