Re: NSTextView and layout manager or cells - how to be most efficient?
Re: NSTextView and layout manager or cells - how to be most efficient?
- Subject: Re: NSTextView and layout manager or cells - how to be most efficient?
- From: John Brownlow <email@hidden>
- Date: Fri, 22 Apr 2005 13:28:11 -0400
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden