[openbeos] Re: StyledEdit Translator?

> I believe that looking at TranslationUtils.h may be 
> helpful in answering your question.  Also you can
> look at the OBOS StyledEdit which uses this mechanism
> to save and load files.  In particular there are these
> three functions and some possibly helpful comments:
> 
> GetStyledText, PutStyledText, WriteStyledEditFile
> 
> There is also the possibility of trying a dynamic_cast
> to BFile* and if it succeeds then you know you have
> attribute access via the traditional mechanism.

That's of course a bit against the rules, and the STXT translator, 
correctly, doesn't do it.

Dano's extension of BDataIO sounds interesting though.

CU, Ingo



Other related posts: