Up-to-date documentation on Cocoa drawing

I’m trying to create image files at runtime by composing vector image assets on MacOS, and I’ve never done any custom drawing before. There is a lot of documentation out there about the latest frameworks like SceneKit and so on, but I’m having a lot of trouble finding up-to-date documentation about simple drawing, using Swift for code samples and on MacOS, not iOS. Wherever I look, I keep coming back to this Introduction to Cocoa Drawing but it hasn’t been updated since 2012, all the sample code is in Objective-C and I’m not even sure that it’s still relevant since the first page explicitly states that “This document is no longer being updated.”

Is there a more up-to-date version of this document somewhere in Apple’s documentation, or any online course, book or other resource you would recommend for an absolute Core Graphics newbie, that just wants to understand what he’s doing instead of copy/pasting code from StackOverflow?

Hi @sarbogast,
There was a very large uptake by developers to develop with iOS such that Mac OS was nearly forgotten, so many of the books, articles are more focused on iOS than Mac OS. There is a small push from devs to look at Mac OS again, but the veterans who use Mac OS do not blog as much on the topics and basics, which a lot of new developers are looking for.

There are a couple of books on developing for Mac OS, however since they are older, they are all using Objective-C instead of Swift. You can look up books from Nerd Ranch, Apress they have some good reference material.

cheers,

Jayant

This topic was automatically closed after 166 days. New replies are no longer allowed.