Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node.js Addons using the cocoa framework

I would like to use some of the c++ frameworks offered in cocoa to use with in the node.js addon system.

If say for example how would you get the mouse position at the os level in node.js on a mac if you can not use the cocoa frameworks in a node.js addon.

If there is a way to link it up could someone please provide help in how to do that?

like image 446
Ray Garner Avatar asked Dec 05 '12 02:12

Ray Garner


1 Answers

Cocoa is written in ObjC isn't it? That way you might just be able to use it with NodObjC.

If you are looking to integrate C++ your goto source of knowledge is node core's Nan.

new implementations do that with C++ deps like here for desktop automation.

like image 144
eljefedelrodeodeljefe Avatar answered Oct 15 '22 08:10

eljefedelrodeodeljefe