However the line: mystr = TextArea.RTFDataMBS gives a Error 0 - Cocoa Only error on Windows.
Should I use the Xojo 'TextArea.StyledText.RTFData built-in function on Windows? What about speed I switched to RTFDataMBS on the Mac because of that and I am really happy.
For what it’s worth, the problem is still there. The documentation still tells RTFDataMBS is for Mac, Windows and Linux.
Did it change and is indeed compatible with all three now? In that case, what is WinRTFDataMBS for?
If it hasn’t changed, then please change the documentation.
There are 2 different answers about this fact and one has to try from code to find out which path is correct.
Also, if it’s now compatible with all 3 systems, the page mentioning each assignment (#if targetmac, targetwindows and targetlinux) is misleading.
Thanks.
[quote=465112:@Christian Schmitz]We have two RTFDataMBS methods!
One for textarea control and one for styledText class.[/quote]
Oh, yes.
So this is even more confusing, as I didn’t noticed that. So the TextArea has RTFData only for Windows and the StyledText one is only for Mac?
Thanks.
[quote=465143:@Christian Schmitz]TextArea.RTFDataMBS -> Mac only
TextArea.WinRTFDataMBS -> Win only
StyledText.RTFDataMBS -> cross platform
this is still the way it is as far as I see.[/quote]
Ok, thanks.
So, for supporting Linux, the StyledText version is the only way.
What are the differences between the 3 methods? Different supported styles?
[quote=465187:@Christian Schmitz]3 different implementations.
Different styles supported.
All for a specific purpose and an alternative to the built-in features.[/quote]
Ok How may I know what those purposes are to choose the one that best fits my needs? As far as I could see, they aren’t documented.
Thanks.