[wx-dev] Re: checking that a wxFileSystem handler is registered
Vadim Zeitlin
vadim at wxwindows.org
Sat Jul 8 16:28:03 PDT 2006
On Mon, 03 Jul 2006 14:08:39 +0200 Francesco Montorsi <f18m_cpp217828 at yahoo.it> wrote:
FM> BTW, also on this subject, I think that, since wxFileSystem uses the
FM> list of handlers sequentially, it may be very useful to:
FM>
FM> 1) add an InsertHandler() function which just calls m_Handlers.Insert()
FM> function
Does it make sense to have 2 handlers for the same URI schema? Do you just
mean to use this as a way to temporarily override some handler (i.e. add a
custom handler at the beginning of the list disabling the existing one and
then remove the custom handler reenabling the old one) or do you see any
other uses for this?
BTW, another possibility would be to just make AddHandler() add the new
handler in the beginning of the list because I think most (all?) of the
time you want the last added handler to be the most prioritary one.
FM> 2) rename AddHandler to AppendHandler().
The Add/Append confusion is unfortunately quite wide spread in wx API :-(
FM> 3) document that the handlers registered first have more priority over
FM> the handlers registered later.
Yes, we should definitely document how all this works, whatever we choose.
Thanks,
VZ
More information about the wx-dev
mailing list