https://github.com/bernhard-42/node-cocoa-ui
An attempt to build native Cocoa UIs with node and NodObjC
https://github.com/bernhard-42/node-cocoa-ui
Last synced: 6 months ago
JSON representation
An attempt to build native Cocoa UIs with node and NodObjC
- Host: GitHub
- URL: https://github.com/bernhard-42/node-cocoa-ui
- Owner: bernhard-42
- Created: 2015-10-11T19:38:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T21:38:30.000Z (almost 10 years ago)
- Last Synced: 2025-04-07T18:02:28.796Z (6 months ago)
- Language: CoffeeScript
- Size: 629 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## An attempt to build native Cocoa UIs with NodObjC
###Issue:
Cocoa Event loop and node event loop do not play together too well ...###Different apporach:
Split Cocoa part and node code into two processes via child_process and use an RPC mechanism to communicate between both:- The Cocoa part will run in node controlled by Cocoa event loop and use AsyncSocketFramework for communication
- The node part will run in node event loop and use net.Socket for communicationFind examples in `example`:
cd example
coffee simple-app.coffee
coffee app.coffee###Test app:
cd examples
../bin/createStandaloneApp.sh TestApp com.example.cocoaui CocoaUiDemo.icns app.coffee ui.coffeeand double click `TestApp`
###To debug ignore building an application and call
cd examples
DEBUG=cocoa-ui* coffee app.coffee### Known issue:
- If client or server crashes, the other process might survive. Use `kill` to kill it