Hacker News new | ask | show | jobs
by koterpillar 822 days ago
How are cursors stored and drawn on let's say macOS? Honest question, comparing with X is easy but not exactly state of the art.
1 comments

TL;DR: it's integrated with the rest of Cocoa.

macOS cursors are provided by an NSCursor class which can either be one of the standard cursor image or provided through an NSImage object, which supports a number of data types (among the usual pixel-based formats like PNG or JPEG also PDF), it looks like applications can also register their own data formats via a class called NSImageRep.

Huh. So it's very similar to the Wayland protocol described in the blog post.