4 ms·
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.
by koterpillar 3y 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.
- flohofwoe 3y agoTL;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.
- RVuRnvbM2e 3y agoHuh. So it's very similar to the Wayland protocol described in the blog post.