Skip navigation.
 
mlRe: NSTextView and layout manager or cells - how to be most efficient?
FROM : John Brownlow
DATE : Fri Apr 22 19:28:11 2005

For some reason this didn't make it to the list yesterday BUT..

The slow line in your routine is the one that forces the layout manager
to recalculate the layout. You should only do this for notes whose text
has changed. That means you will either have to have a layout manager
and text storage for each note, or find a way of caching the glyph info
for each note so the shared layout manager can use it.

If you do this it will be waaaaay faster.

On Apr 21, 2005, at 7:34 PM, Martin wrote:

> Have you considered having each of your note objects maintain their
> own layout manager and text storage? This would not do much to reduce
> the time required for the initial load, but subsequent layout cycles
> (and drawing) will be faster.

--
John Brownlow
Deep Fried Films, Inc

http://www.johnbrownlow.com
http://www.pinkheadedbug.com

Related mailsAuthorDate
mlRE: NSTextView and layout manager or cells - how to be most efficient? Martin Apr 22, 01:34
mlRe: NSTextView and layout manager or cells - how to be most efficient? John Brownlow Apr 22, 19:28