On 2007-04-03, at 05:35, Brendan Murphy wrote:

> I would like warn those who are intending to use the new RTF
> import feature in the StyledText object to be careful. Their RTF
> parser is not robust and will crash and burn given the right input
> (see feedback report "xfqdvyyl"). If you intend to import RTF data
> from arbitrary sources such as other word processors, there is a
> significant probability that it may crash your application. If
> can't control the source of the input RTF, then you are rolling
> the dice. So buyer beware.
>


On OS X 10.4.9 Intel...
I can't get it to work at all, perhaps I do something wrong.. The  
test file is is just "hello" saved using TextEdit

   dim rtfStr as String
   dim f as FolderItem

   f = GetFolderItem("hello.rtf")

   if f <> nil and f.Exists then

     dim i as TextInputStream
     i = f.OpenAsTextFile
     if i <> nil  then
       rtfStr = i.ReadAll
       i.close
       EditField1.StyledText.RTFData = rtfStr <<-------------- NIL
     end if ' nil

   end if '  exist

  ------------------------
Sven E


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to