realbasic-nug
[Top] [All Lists]

Re: StyledText.ParagraphCount() is too expensive (styled EditField)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: StyledText.ParagraphCount() is too expensive (styled EditField)
From: Erne <erne at apimac dot com>
Date: Sat, 29 Apr 2006 16:53:22 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
on 29-04-2006 16:37, Marcel at p dot marcel dot list at gmx dot de wrote:

> Hello everybody!
> 
> Maybe somebody finds this trick useful:
> (... and maybe someone finds a trap, I haven't seen?)
> 
> I make heavy use of styled EditFields in my project. After playing
> around, I found out that the call of the method...
> 
> aNumberOfParagraphs = anEditField.StyledText.ParagraphCount()
> 
> ... is very time consuming.  About a second (!) for 30 paragraphs on
> a 1,25 GHz G4.
> 

Yep! and maybe you'll want to sign on this:


Report ID:     bmetcrbs
Status:     Open   
Summary:     Slow iteration of Paragraphs in StyledText object



Cool Runnings,
Erne.
-- 

/ |\ |\  | /
­ |/ | \ | ­
\ |\ |  \| \


_______________________________________________
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>


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