realbasic-nug
[Top] [All Lists]

Re: Storing the contents of a styled editfield...

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Storing the contents of a styled editfield...
From: Jann Gobble <janngobble@gmail.com>
Date: Tue, 30 Jun 2009 11:47:22 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=d0RvEhSv1pVFl7Uxx2ef0F0G9mzyNmDtPJSBamJrfz0=; b=B/OWMfUVHcgpVo6GX9ZoyMP28Gxfzya23QcWzUvu7PJykDbhCPrd7yQa+axhNJb8Qc IHdki4sPZ3hRrvn/RGUR9VaK78hXVvdeXrJDqNGBnXQB/HI+lLN0T5H2oDNHATRygNcu RZPgUkutgVv/gdg3PXVC+40oRbW6G5wERBS5s=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=lMsSBTmU3r+dErLWb8YVa6yNnl+85VJwo4qe7QBPxBdPYdDPnYajIFfgP5hT5plLrR qBS+N9IcAPQ982ViXmW2tHhm/s17koM6feleDBBZPUulwJ0GOzQvhd+/d2TwqflyrHZE gcCznhDCfNzaHnOrgX/I+t9aEn7d+U2fqtghk=
In-reply-to: <581F7A36-09EA-46AC-87A9-9D220619CD15@nc.rr.com>
References: <839A347D-2C6B-474A-86E3-53B7D4F9DE96@gmail.com> <3F065AC5-0800-4C72-AE51-26205201E422@tolisgroup.com> <61E0597D-4987-4B6F-99DA-5CCEF0567800@xochi.com> <581F7A36-09EA-46AC-87A9-9D220619CD15@nc.rr.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I do plan on deploying on linux.

I will test.  Thx Russ!

Jann


On Jun 30, 2009, at 11:43 AM, Russ Tyndall wrote:


On Jun 30, 2009, at 2:06 PM, Michael Diehr wrote:

Correct -- EditField.StyledText.RTFData is an string which can be stored in a text file, and this is enough data to restore an edit field to its prior state.

As long as the RTF data originates in REALbasic, I think it works ok. Problems may arise if you try to get RTF from another source, as the RTF parser in RB is limited.


I haven't done any testing with 2009r2 or 2009r2.1, but I had enormous problems while trying to get this to work on Linux. At the time it looked like RB was adding spurious characters into the string when creating StyledText.RTFData on Linux that was hosing up the display when the string was pulled back out.

But everything worked great on Windows and OS X.

So if you plan to deploy to Linux, test thoroughly.

-----------------
Russ Tyndall
Wake Forest, NC




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

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


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

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


<Prev in Thread] Current Thread [Next in Thread>