• 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: drawGlyphsForGlyphRange layout issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawGlyphsForGlyphRange layout issue


  • Subject: Re: drawGlyphsForGlyphRange layout issue
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 26 Sep 2012 10:03:12 +0100

On 26 Sep 2012, at 02:08, Aki Inoue <email@hidden> wrote:
>
>> 2. I thought the core text route would be more efficient. I have cached my CTLineRefs. Doesn't -drawWithRect:options:attributes: require instantiating an NSLayoutManager on each call?
> We don't instantiate NSLayoutManager on each call.  In some cases, caching CTLine could be more efficient.  In other cases, using NSStringDrawing methods are more efficient.
>
> You should sample with your particular app before making the decision.


In my use case scenario on OS X 10.8 the cached CTLine approach is an order of magnitude faster than using the NSStringDrawing methods.

Thanks for your input. It helped a lot.

Regards

Jonathan Mitchell
Mugginsoft LLP

================================================
KosmicTask - the Integrated Scripting Environment for OS X.
http://www.mugginsoft.com/KosmicTask
================================================
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >drawGlyphsForGlyphRange layout issue (From: "email@hidden" <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: Graham Cox <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: "email@hidden" <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: Kyle Sluder <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: "email@hidden" <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: "email@hidden" <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: Aki Inoue <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: "email@hidden" <email@hidden>)
 >Re: drawGlyphsForGlyphRange layout issue (From: Aki Inoue <email@hidden>)

  • Prev by Date: app developed for iPhone is compatible with iPad
  • Next by Date: Re: nstableview without nsscrollview
  • Previous by thread: Re: drawGlyphsForGlyphRange layout issue
  • Next by thread: iOS:targeting iOS3 through iOS6
  • Index(es):
    • Date
    • Thread