On Mon, Dec 20, 2010 at 11:53 PM, Joar Wingfors <j...@joar.com> wrote: > > On 20 dec 2010, at 01.22, Mark Coniglio wrote: > >> My application needs to draw hundreds of short text strings into an NSView. >> After reviewing the Cocoa documentation on drawing text, I am left unsure as >> to how to do this with the highest level of efficiency. > > Don't optimize in the dark! Implement something in the most straight forward > way you can imagine, and then measure the performance. If you find that it > doesn't perform well enough, use your measurements to guide you to a better > implementation. I don't think that we have enough information yet to provide > really good suggestions.
Seconded. The NSString "convenience" methods are the easiest, most straightforward way, so I'd try those first. If and only if they didn't perform well enough, then I'd start looking for a better-performing alternative. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com