• 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
Core Animation vs. Basic Cocoa Graphics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Animation vs. Basic Cocoa Graphics
      • From: Volker in Lists <email@hidden>
    • Re: Core Animation vs. Basic Cocoa Graphics
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: How to get NSPathControl to resize programatically? (Solved..)
  • Next by Date: Re: Cocoa-dev Digest, Vol 7, Issue 287
  • Previous by thread: Re: Custom cell wanted
  • Next by thread: Re: Core Animation vs. Basic Cocoa Graphics
  • Index(es):
    • Date
    • Thread