Re: EditField.text problem

perhaps this would help
from Apple ADC refs: .../ATSUI_Concepts/atsui_chap4/chapter_4_section_10.html
"""""""""""""""""""""""""
Breaking Lines
ATSUI provides two functions for calculating and setting soft line breaks programmatically: ATSUBreakLine and ATSUBatchBreakLines. Calling the function ATSUBatchBreakLines is equivalent to repeatedly calling the function ATSUBreakLine, as shown in Listing 3-4. It’s preferable that you use ATSUBatchBreakLines because this function performs more efficiently than repeated calls to ATSUBreakLine.

"""""""""
=========
On Mar 25, 2006, at 3:46 PM, Bob Delaney wrote:

It gave the same result. This time I waited it out. It took 15 minutes for that one line to complete.

I'm betting that REALbasic is spending all of its time in a call to ATSUBatchBreakLines, which provides the calculations for soft-line breaks. The worst case scenario is a line with no words that must be broken into multiple lines, especially with a non monospaced font. While I haven't tried this, I would hope that Apple might optimize the case: does it work any faster if you use a font such as Monaco?

I doubt there's much we can do to optimize this case. You might consider adding some line breaks or spaces in your generated string :)

HTH,
Jon


You win the bet! I put in a line break every 5000 characters. Now it
only takes 8 seconds for the 1,000,000 characters to display.

By the way, the Windows version of OMMs did not have this problem,
even without the line breaks. Running under VirtualPC, the display
took less than one second. (The calculation of the string in the
plugin took about 8 seconds vs. about 3 seconds in OS X.)

Thanks very much.

Bob

==================================

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to