On Apr 20, 11:09 pm, Matthew Phillips <
spam20...@yahoo.co.uk> wrote:
> In message <
a17dba65-dd1e-4e9c-85ba-06dd6a048...@i2g2000vbd.googlegroups.com>
> on 20 Apr 2012 Gerph wrote:
>
> > On Apr 19, 4:29 pm, Martin Wuerthner <
spamt...@mw-software.com> wrote:
> > > In message <
63a3378152.Matt...@sinenomine.freeserve.co.uk>
> > > Matthew Phillips <
spam20...@yahoo.co.uk> wrote:
>
> > > > Would any clipboard owning task do anything with the window handle
> > > > value other than copy it into the Message_DataSave for the reply? Might
> > > > there be an application out there which used the window handle to
> > > > determine where to send its replying Message_DataSave, rather than
> > > > using the task handle of the task it received the Message_DataRequest
> > > > from?
>
> > > Unfortunately, the protocol does not state where the reply should be
> > > sent to, and since messages can be sent to windows or tasks, the
> > > recipient could indeed choose to send it to the given window. The
> > > usual meaning of "replying" to a message is to send the reply to the
> > > sending task though, so that approach seems unlikely.
>
> > When replying to messages you should always reply to the sender field
> > in the message block, unless the message explicitly requires you not
> > to as part of its protocol. Doing anything other than that will break
> > recorded delivery messages and in any case would prevent the sender
> > from actually receiving the message.
>
> So only the utterly paranoid programmer should worry about not putting a real
> window handle in Message_DataSave. I'm sure that paranoia ought to be a
> virtue, along with laziness, hubris and whatever the other one is in
> "Programming Perl".
As always, be pragmatic. Realise that you are accepting deviance from
specification and the implications of doing so. Then you will reach
true enlightenment. Or something like that anyhow.
> I did think of a neat way round the messages getting grabbed by the wrong
> handler, based on Martin's suggestion of looking at the your_ref field, but
> as time is short and the application works with EasiWriter (the only software
> worth testing with) I may make do with what I've got for the initial release!
Um... There are a slew of applications which support the clipboard,
and EasiWriter is just one of many. In '99 I did a quick survey of the
applications which supported the clipboard for an internal review
prior to implementing ClipboardHolder, and there were quite a few
applications. I've lost the report I did, but the preparation for it -
asking on newsgroups - yielded this:
http://groups.google.com/group/comp.sys.acorn.misc/msg/6a0f247f77d02f90
That's 13 years ago. You might find that there are a few more
applications out there that have support for the clipboard. I'd
suggest that being sure that things worked with Zap and StrongEd would
be wise, as would checking with Draw and Paint, if you handle non-text
formats. And of course DataPower is probably definitive.
Pragmatism shouldn't include testing with a limited subset when a
wider test set is readily available. If your time is insufficient for
testing more widely, then you are accepting that you will get a
greater number of support requests for issues that you were unaware
of, and potentially serious issues that require further development
later. If you accept that, then that's ok.
--
Gerph.