TooTallNate / NodObjC

The Node.js ⇆ Objective-C bridge

Home Page:http://tootallnate.github.io/NodObjC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSTouchBar usage

rgascons opened this issue · comments

Hello,

I'm attempting to build a NodeJS wrapper for NSTouchBar classes and I'm planning on using NodObjC for the bindings.

However, I'm not succeeding on using even the base class of the library. This is a sample code of what I'm attempting:

const $ = require('nodobjc')

$.framework('Foundation')
$.framework('Cocoa')

let pool = $.NSAutoreleasePool('alloc')('init')
let touchbar = $.NSTouchBar()

But the last line fails to execute, throwing the following error: Selector passed in was empty.

Any clues about what I'm doing wrong? I can provide more info if necessary.

Thank you.

let touchbar = $.NSTouchBar('new');