Dev Breakthroughs
68.9K views | +2 today
Follow
Dev Breakthroughs
Monitoring innovations in database, PHP, JS, RIA, HTML5, mobile and agile dev strategies & tools
Curated by Nicolas Weil
Your new post is loading...
Your new post is loading...
Scooped by Nicolas Weil
Scoop.it!

Apple’s new Objective-C to Javascript Bridge

Apple’s new Objective-C to Javascript Bridge | Dev Breakthroughs | Scoop.it

A few month back, Apple quietly slipped a very nice Objective-C to Javascript bridge into WebKit. Since the first commit while we were busy celebrating New Year’s Eve, it has been fairly actively developed and improved. This new API supports straightforward embedding of the JavaScriptCore interpreter into native Objective-C projects, including reading and writing variables and object members with appropriate type coercion, calling methods on JavaScript objects, and directly binding Objective-C objects into JavaScript.

It seems likely that this API is going to become public in Mac OS X 10.9 (where JavaScriptCore is already a public framework), and it might be a hint of an eventual public API on iOS. Either way, a new option for building hybrid JavaScript apps is here.

No comment yet.
Scooped by Nicolas Weil
Scoop.it!

NodObjC : The Objective-C bridge for NodeJS

NodObjC exposes the Objective-C runtime to NodeJS in a high-level, easy to use fashion. It uses the BridgeSupport files to dynamically generate an API from an Objective-C "Framework" at runtime, and uses node-ffi to dynamically interact with Objective-C's runtime.
Essentially, NodObjC is similar in nature to the other popular Objective-C scripting bridges:
- JSCocoa
- PyObjC
- CocoaRuby
So you can write Objective-C based applications entirely with Node and JavaScript! Eventually even iOS native apps as well! So what are you waiting for? Get to coding!
No comment yet.