rtfText twilight zone problem

Josh Mellicker josh at dvcreators.net
Thu Aug 14 20:49:57 EDT 2008


Wow, thanks Mark!

On Aug 14, 2008, at 5:43 PM, Mark Smith wrote:

> Josh, I just downloaded  your stack.
>
> I'm using a mac , 10.4.11
>
> In Rev 2.9, I see the same weirdness you describe, but under 3.0  
> beta10, all is fine....
>
> I can find no mention of rtfText bugs in the changeLogs, but it  
> looks like something has got fixed.
>
>
> Best,
>
> Mark
>
> On 15 Aug 2008, at 00:09, Josh Mellicker wrote:
>
>>
>> If you either download this stack:
>>
>> http://revcoders.org/stacks/rtfWeirdness.rev.zip
>>
>> or make one yourself:
>>
>> 1. create a field called "draft", and a field called "final" (and a  
>> couple buttons)
>>
>>
>> 2. put some text in it, and colorize some words in that field  
>> (either with the menu or by scripting)
>>
>>
>> 3. then save the rtfText of the field to a file
>>
>>
>> 4. button "save":
>>
>> ON mouseUp
>>    ask file "where?"
>>    put the rtftext of fld "draft" into URL ("file:" & it)
>> END mouseUp
>>
>>
>> 5. button "load":
>>
>> ON mouseUp
>>    answer file "which file?"
>>    put url("file:" & it) into t1
>>
>>    set the rtftext of fld "final" to t1
>>
>>    -- at this point it is visibly clear colors have changed
>>
>>    put the rtftext of fld "final" into t2
>>    IF t1 <> t2 THEN answer "nooo"
>>
>> END mouseUp
>>
>>
>> Do you get "nooo" every time? We do, on OS X, both PPC & Intel.
>>
>> The variable t1 is always perfect... but once setting the rtfText  
>> of the field, it is set to a value VERY CLOSE, but NOT EXACTLY the  
>> variable.
>>
>> Weeeeird! Are we in the twilight zone?
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list