• 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: Wed, 27 Apr 2005 10:14:36 -0400

the next thing to do is run Sampler alongside your layout code and see what's taking the time.

On Apr 27, 2005, at 5:29 AM, Keith Blount wrote:

Many thanks to both of you for your replies (sorry it
has taken a few days to thank you - I've only just got
back to this part of my app.)

I have followed your suggestions, and now instead of
having a simple NSString as an instance variable, my
note objects have an NSTextStorage. On initialisation,
I create a text container and layout manager and have
the text storage own these, rather than having to use
the shared layout manager. I'm not 100% sure this is
any faster than using the shared layout manager (the
shared layout manager was created using the code from
the Sketch example), but at least things are faster
than in my old implementation that used lots of text
views. A document with 200 notes (and it's highly
unlikely a real user will ever have as many notes) now
loads in about 4-5 seconds, whereas it used to take
about 8-10. I'd still like to speed things up further,
but maybe that's not going to happen on my G4 1Ghz
machine...
--
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: Keith Blount <email@hidden>)

  • Prev by Date: Re: app with MDquery won´t launch in 10.3
  • Next by Date: Re: Document Types
  • Previous by thread: RE: NSTextView and layout manager or cells - how to be most efficient?
  • Next by thread: How to use a framework? (newbie)
  • Index(es):
    • Date
    • Thread