Re: NSString drawAt: ...
Re: NSString drawAt: ...
- Subject: Re: NSString drawAt: ...
- From: Douglas Davidson <email@hidden>
- Date: Fri, 21 Jun 2002 13:25:09 -0700
On Friday, June 21, 2002, at 01:37 PM, Paul Fox wrote:
I have a question regarding NSString and drawing. Drawing is slow -
unimaginably slow, and I have seen questions about this before.
There is currently an issue with string drawing, that drawing into an
unflipped view causes a temporary flipped subview to be added. We hope
to address this issue in the future, but in the meantime you will be
much better served by making your view flipped. There will be
considerable improvements in string drawing performance for Jaguar, but
for a view that relies extensively on drawing text--especially one with
persistent text, such as a view that edits text--you are likely to get
much better performance by using NSLayoutManager directly rather than
the string drawing convenience APIs. This is, for example, what
NSTextView itself does. The CircleView example shows how to use
NSLayoutManager for drawing strings.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.