Core Animation vs. Basic Cocoa Graphics
Core Animation vs. Basic Cocoa Graphics
- Subject: Core Animation vs. Basic Cocoa Graphics
- From: "Mazen M. Abdel-Rahman" <email@hidden>
- Date: Wed, 10 Mar 2010 10:13:05 -0700
Hi All,
I was able to write a simple calendar view that uses basic cocoa graphics to draw directly on the view (NSBezierPath, etc.). I actually use several different paths for drawing the calendar (it's a weekly calendar) to allow different horizontal line widths (hour, half hour, etc.). The calendar view is inside a scroll view - and is actually about 3 times longer than the view window. The main problem is that the scrolling is not smooth - and my assumption is that it's because the NSBezier stroke functions have to be constantly called to render the calendar.
For something as relatively simple as this would moving to core animation - i.e. trying to render the calendar on a layer instead (I am still trying to learn core animation) add performance benefits? And would it allow for smoother scrolling?
Thanks,
Mazen Abdel-Rahman
_______________________________________________
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