revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

feat(native): wrap common NSObject functions in an OCaml context #1023

Closed zbaylin closed 3 years ago

zbaylin commented 3 years ago

This creates a basic wrapper of various NSObject selectors, such as isEqual, hash, description, etc.

This will be helpful in the creation of native menus on macOS, since we'll have generic functions for comparing values, which will be useful in data structures like Hashtbl.t