MacRuby in Action is a tutorial for Ruby developers who want to code for Mac OS X without learning Objective-C. You'll learn the ins and outs of the MacRuby language, including straightforward examples of creating OS X applications using Cocoa components. about the technology For Rubyists, it's a real drag switching to a static language like Objective-C for Mac development. Fortunately, you don't
MacRubyでプロジェクトを作成すれば、Objective-Cのコード中から簡単にCの構造体をダンプできる。 Ruby側。NSValueに詰め込まれた構造体と型名を受け取って、ダンプするユーティリティ。 class Util def self.dump_struct_withName(o,klass_name) if (o.kind_of?(NSValue)) pointer = o.pointerValue puts pointer.class #=>Pointer pointer.cast!(TopLevel.const_get(klass_name).type) struct = pointer[0] return unless struct.class.respond_to?(:fields) puts "dumping struct #{struct.class}" struc
Is it MacRuby? Listing Ruby Gems and showing their MacRuby compatibilityPopular gems (most comments) yard 0 1 garb 0 1 jirasoap 1 0 rest-client 0 1 nokogiri 1 0 sinatra 1 0 curb 0 1 jeweler 0 1 datamapper 0 1 zyps 0 0 zxing 0 0 zvent 0 0 zuul 0 0 zurb-awesome-buttons 0 0 zuora-client 0 0 Get involved! The Ruby community needs your help. Install MacRuby then try out your favorite gems and provide f
Announcing RCRunner, a GUI test runner for MacRuby and Cocoa. Cocoa unit testing can be a pain. In addition to the usual difficulties of writing tests for user interface heavy code, the Apple sanctioned solution, SenTestingKit, can isn't the greatest testing framework around and the default way of using it rules out debugger. GHUnit helps somewhat. It's a GUI test runner with additional testing me
This document contains the slides from a presentation about MacRuby. It discusses key aspects of MacRuby including its use of LLVM, ahead-of-time and just-in-time compilation, integration with Cocoa and Objective-C, lack of a global interpreter lock, Grand Central Dispatch API, debugger, ability to create compiled libraries and applications, and potential uses like building App Store apps. Example
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
Using MGTwitterEngine with MacRuby (or How to Build a Twitter Client with 37 Lines of Code) Last week, the guys at PeepCode published their first screencast about MacRuby: Meet MacRuby. In it the presenter develops a simple Twitter client, which he actually calls "the world's simplest Mac Twitter client in Ruby" (at 21:05min in the screencast). While the screencast is great and the client itself i
リファレンスの見方とかよくわかってなかったので自分用まとめ。間違ってるとこなどあれば教えてください。 Cocoaには、NSStringというクラスがあり、NSStringには、文字列を作成するstringWithString:というメソッドがある。 リファレンスを見ると + (id)stringWithString:(NSString *)aString と書かれているが、これは + (返り値型)メソッド名:(引数型)引数 ということ。 最初の「+」は、クラスメソッドであることを示し、「-」になっているものは、インスタンスメソッドであることを示す。 これを実際に使って、obakeという変数に"Qtaro"という文字列を入れるには NSString* obake; obake = [NSString stringWithString:@"Qtaro"]; とか書く。 NSString* ob
あなたにとって重要なトピックや同僚の最新情報を入手しましょう最新の洞察とトレンドに関する最新情報を即座に受け取りましょう。 継続的な学習のために、無料のリソースに手軽にアクセスしましょうミニブック、トランスクリプト付き動画、およびトレーニング教材。 記事を保存して、いつでも読むことができます記事をブックマークして、準備ができたらいつでも読めます。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く