Re: How heavy is NSLayoutManager?
Re: How heavy is NSLayoutManager?
- Subject: Re: How heavy is NSLayoutManager?
- From: Seth Willits <email@hidden>
- Date: Tue, 2 Jun 2009 12:24:02 -0700
On Jun 2, 2009, at 9:50 AM, Frank Canova wrote:
But how heavy is NSLayoutManager? It has a bunch of private objects
so it's hard to judge from looking at the header file. Would it be a
problem handing out several dozen of them?
Any time you draw an attributed string, it creates a temporary layout
manager to do the drawing. Given that, keeping layout managers around
is certainly more efficient than drawing attributed strings over and
over, and I don't see why having dozens of layout managers around is
any slower (what else could be the side effect of being "heavy") than
having 1 in your case other than the initial creation.
--
Seth Willits
_______________________________________________
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