This example shows the creation of two custom NSViews, which each paint themself via different mechanisms.
• One overrides the draw method and handles the painting there.
• One arranges a set of Core Graphichs layers to handle the drawing.
Author : https://github.com/dylankelly5.
If you like this tutorial then you can download full copy of the code from github.