Wednesday, May 15, 2013

Apple’s New Objective-C-to-JavaScript Bridge in WebKit

Nigel Brooke (via John Siracusa):

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.

Comments RSS · Twitter

Leave a Comment