はてなダイアリーの「MacBook Air 11インチ欲しい!」企画へのエントリー記事です。 MacRuby の ML に流れていたメールなどで興味を引いたものをピックアップしたいと思います。 autorelease は使わない MacRuby のメモリ管理は libauto という GC が使われています。機構は違いますが GC も autorelease も不要になったメモリを回収するためのものです。GC と autorelease の両方を使用していると、GC がメモリを回収したあとで autorelease が動いたりするケースで予期しないエラーが発生します。MacRuby では、メモリ管理は GC にすべて任せましょう。 http://lists.macosforge.org/pipermail/macruby-devel/2010-December/006600.html ht
This year I gave the traditional Apple’s MacRuby talk at RubyConf. My presentation focused on 2 axis: What’s new since last RubyConf Show some examples of how fun it is to hack with MacRuby Macruby – RubyConf Presentation 2010 View more presentations from Matt Aimonetti. MacRuby is currently at version 0.7.1 and version 0.8 is in preparation. Since last new a lot of things happened, here is a qu
Thank You! Open Feedback Publishing System (OFPS) is now retired. Thank you to the authors and commenters who participated in the program. OFPS was an O'Reilly experiment that demonstrated the benefits of bridging the gap between private manuscripts and public blogs. Readers gained access to in-progress O'Reilly manuscripts and were able to communicate suggestions with the authors, follow others'
Cocoa APIを使用していると、引数にポインタ変数を渡さなければいけないときがあります。多くはNSError* error;のような変数が必要になるケースでしょうか。 Rubyにはポインタ変数を扱うことができるクラスが存在しないため、MacRubyではPointerクラスが追加されています。 // ObjC NSError* error; # MacRuby error = Pointer.new('@') error = Pointer.new(:object) 作成したPointerインスタンスの値はerror[0]と参照することができます。Cocoa APIにもerror[0]を渡します。Cocoa APIにはerrorをそのまま渡せばMacRubyが良きに計らってくれるみたい。参考:Probing Cocoa With MacRuby Probing Cocoa With Ma
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く