Re: [MacRuby-devel] MacRuby: The Definitive Guide

2011-11-08 Thread Robert Love
Finally, it arrived. On Nov 2, 2011, at 9:46 PM, Matt Aimonetti wrote: > Hey guys, if you pre ordered the hard copy of my book, it should arrive in a > few days (just got mine). > Otherwise you can buy from O'Reilly: > http://shop.oreilly.com/product/063692723.do or Amazon: > http://amz

[MacRuby-devel] BridgeSupport (objC header file) simple parser

2011-11-08 Thread Matt Aimonetti
On my way down to RubyConf Argentina I wrote these few lines of code to parse the Objective-C header generated by the sdef/sdp commands into a Ruby object that I then dump to JSON. https://gist.github.com/1349038 Usage: $ ./bridgesupport_doc_parser.rb ~/tmp/inDesign.h Feel free to build whateve

Re: [MacRuby-devel] NSTimer.timerWithTimeInterval ?

2011-11-08 Thread Matt Aimonetti
Thanks Robert for the feedback. The challenge is that technically, the param keys are part of the method signature. In Objective-C, this is called a selector and you can define multiple methods taking different "keyword arguments" and therefore somewhat overloading the method. This is a very common