kishikawakatsumi/JavaScriptBridge · GitHub 前にiOS 7から導入されたJavaScriptCore.frameworkを使ってUIKit標準のクラスを操作する話を書きました。 JavaScriptだけでiOSのUIを書いてみる - 24/7 twenty-four seven JavaScriptCoreを使ってJavaScriptからObjective-Cのオブジェクトを操作するのは、あらかじめJSExportプロトコルで公開しておく必要があるなど、あまり実用的ではありませんでしたが、このライブラリを導入すうることで、そういった事前準備がすでに済んでいる状態で使いはじめることができます。 また、JavaScriptからObjective-Cのクラスを定義できるなどいくつかの拡張を加えてあり、UIViewControllerのサブクラスで画面を定
Development Apple’s new Objective-C to Javascript Bridge Nigel Brooke • May 13th, 2013 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
JavaScript では、定義されているよりも少ない引数を指定してメソッドを呼び出せるようになっていますが、JavaScriptCore を使ってネイティブコードで関数を実装する場合、引数が省略されたかどうかを知ることができます。
Unicode names for classes and selectors I guess JSCocoa is really fully unicode now ! This only works well on the JSCocoa side, as on the ObjC side you'll have to get the class with objc_getClass([@"ファイナンス" UTF8String]). I can't get it to call selectors yet. Still looks nice though ! Catch ObjC exceptions in Javascript Following Rentzsch's post about how JSCocoa was broken, you can now catch ObjC
JavaScript is a nice simple language, used in almost all web browsers. And it is not limited to your browser, it is also ideal for scripting apps. The benefits of using JavaScript as a scripting language are many. JavaScript has a large base of people who have come into contact with it and are used to using it. It is a simple an nice clean language (when separated from browser issues and DOM incon
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く