Questions tagged [nodobjc]

NodObjC exposes the Objective-C runtime to Node.js in a high-level, easy to use fashion. It uses the BridgeSupport files to dynamically generate an API from an Objective-C "Framework", and uses node-ffi to dynamically interact with the Objective-C runtime.

NodObjC exposes the Objective-C runtime to Node.js in a high-level, easy to use fashion. It uses the BridgeSupport files to dynamically generate an API from an Objective-C "Framework", and uses node-ffi to dynamically interact with the Objective-C runtime. This allows Cocoa or iOS GUI applications to be written entirely in Node.js JavaScript.

Applications are interpreted at runtime through the V8 engine, rather than compiled to a machine executable. This has the advantage of being able to tweak code without having to recompile; excellent for rapid prototyping and development, or for those GUI applications where absolute speed is not a requirement.

NodObjC is similar in nature to the other popular Objective-C scripting bridges - JSCocoa, PyObjC, MacRuby and others.

Resources

NodObjC on GitHub

5 questions
6
votes
1 answer

$.NSUserNotificationCenter('defaultUserNotificationCenter') returns null

I am trying to fire up a notification to the Notification Center through node and NodObjC and the problem is: $.NSUserNotificationCenter('defaultUserNotificationCenter') returns always null instead of an object to be abled to call the…
user1739413
  • 153
  • 6
3
votes
1 answer

NSStatusBar with NodObjC

I'm trying to create a cocoa app with Node.js using NodObjC. I have been creating an app which runs on only MacOS X as HTTP server. NodObjC https://github.com/TooTallNate/NodObjC I want to show the server status with icon on StatusBar like this. I…
wf9a5m75
  • 6,100
  • 3
  • 25
  • 59
0
votes
0 answers

Activate window in NodObjC

I'm stuck on trying to activate a window in OSX from node using nodobjc. Here's what I have: var $ = require('nodobjc'); $.framework('Cocoa'); //found window is returned from CGWindowListCopyWindowInfo left out for brevity's sake const app =…
kbcool
  • 695
  • 6
  • 18
0
votes
0 answers

ffi_prep_cif() returned an FFI_BAD_TYPEDEF error

I'm trying to port the following code from Objective-C to Node.js: [[self.output connectionWithMediaType:AVMediaTypeVideo] setVideoMinFrameDuration: CMTimeMake(1, 30)]; I'm writing the following: this.output('connectionWithMediaType',…
Matheus
  • 134
  • 8
0
votes
1 answer

Getting window location of open apps via NodObjC

I've been messing around with the node.js module NodObjC recently (very cool module btw), I threw together a simple module, macmouse, that gives you the ability to control your mouse through node.js, now I'm trying to fetch information on open…
Loknar
  • 1,169
  • 2
  • 13
  • 38