Re: import/export interface for Bonobo



Michael Meeks <michael@helixcode.com> writes:

> Hi,
> 
> 
> > So it seems to me like the right place to put typing information might
> > be the Stream interface, not PersistStream. A Stream could have an
> > optional associated MIME type which the component implementing
> > PersistStream could check when reading. Typing on an output stream
> > could be considered purely a hint, perhaps.
> 
> 	This is an alternative and worth of consideration. The R/W typing
> issue is a pertainant one, but ned only add a boolean to the get_types
> method [ which could be renamed query_types perhaps ].

For the love of god, no, don't use a boolean argument for this. At
minimum use an enum, but better yet have two different methods.

However, what do you think about my argument that this information is
already statically contained in the oafinfo? Can you think of any
cases where the ability to query for it dynamically adds anything?

> > I don't think this will complicate implementing PersistStream any, and
> > in some cases may simplify doing so.
> 
> 	Sure; can we move to a consensus quickly on this so Dan can get on
> with his life ?

If Dan is blocked he could always implement whatever interface he
wants in Evolution for the time being. We have a number of interfaces
in Nautilus (zooming, undo, etc) that we want to move to Bonobo at
some point once they have been tested in practice.

 - Maciej





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]