Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> TrackWeight utilizes the Open Multi-Touch Support library by Takuto Nakamura to gain private access to all mouse and trackpad events on macOS. This library provides detailed touch data including pressure readings that are normally inaccessible to standard applications.

How can something be available as a library but not as a native interface? Swift does not expose that API?



Mac OS has "Private Frameworks" - shared libraries that are used by the system but don't ship with headers by default. It's trivial to produce these headers from the libraries, and then make wrappers for them like OpenMultitouchSupport which is a wrapper for MultitouchSupport.framework.


But just to note, I believe you can't pass Gatekeeper/Notary if you use these APIs so it's not possible to sign the app


Notarisation is not supposed to check for things like this; but you certainly would not be able to ship this to the App Store.




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

Search: