Starstuff
A UI library for JXA
NOTE: This is a new project and under heavy development, just figuring things out right now.
Why?
The code required to build UIs using Cocoa can be quite verbose. Startstuff provides a familiar, chainable API for creating those UIs.
Installation
npm install --save starstuff
Usage
; // Create a new NSWindow. `$mainWindow` is a Starstuff object.// Startstuff does not prevent access to original Cocoa// objects, they are stored in the `el` property.// ex; $mainWindow.elvar $mainWindow = starstuff; $mainWindow;
API Reference
window({options})
fieldLabel({options})
textField({options})
button({options})
image({options})
openPanel({options})
Contributing
npm install
To compile the source–written using es6–with Babel run:
npm run build
To recompile as you make changes run:
npm run watch