Hacker News new | past | comments | ask | show | jobs | submit login

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.



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: