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: Fastest way to push strings to the screen in an NSView?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Fastest way to push strings to the screen in an NSView?
Subject
:
Re: Fastest way to push strings to the screen in an NSView?
From: "M. Uli Kusterer" <
email@hidden
>
Date: Mon, 22 Nov 2004 08:50:36 +0100
Scott,
in neither of these versions I see you actually checking whether your text is visible in the view. So, I just thought I'd mention again: The best way to speed up drawing in Cocoa is to not do any drawing at all.
Characters are very complex shapes, so a check whether two rectangles intersect will always be noticeably faster than drawing them and waiting for Quartz to check each pixel against the clipping path to find out it doesn't need to draw.
If your view is inside a scrolling view, for instance, you'll end up doing way too much work for what the user actually gets to see.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References:
>
Fastest way to push strings to the screen in an NSView?
(From: Scott Ellsworth <email@hidden>)
Prev by Date:
Re: Using bindings to set the value of an NSTextView
Next by Date:
Re: NSPanel with just a close button & title on title bar?
Previous by thread:
Re: Fastest way to push strings to the screen in an NSView?
Next by thread:
Mail plugins for modifying headers on outgoing messages
Index(es):
Date
Thread