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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to