• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView and layout manager or cells - how to be most efficient?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >RE: NSTextView and layout manager or cells - how to be most efficient? (From: "Martin" <email@hidden>)

  • Prev by Date: Forcing a particular window for URLs to go to
  • Next by Date: How to setup "FileOwner" in IB
  • Previous by thread: RE: NSTextView and layout manager or cells - how to be most efficient?
  • Next by thread: RE: NSTextView and layout manager or cells - how to be most efficient?
  • Index(es):
    • Date
    • Thread