[MacRuby-devel] spotlight - MDItemRef
ruben at 0x82.com
Thu Oct 29 09:24:10 PDT 2009
Thank you, that's very simple.
However I'm still curious about the daily non-Xcode scripts.
Image I want to write a macruby script that uses my Objective-C helper
class. What's the easiest way to accomplish that outside XCode?
On Oct 29, 2009, at 11:43 AM, Alan Skipp wrote:
> It's really simple, you just need to create an Objective-C class in
> macruby application (header and implementation file). You can then use
> it in your ruby code without any hassle, it's great. For example, if
> create an Objective-C class called 'MetaDataHelper', you can use it
> helper = MetaDataHelper.new
> and call methods on it like any other ruby object, eg:
> metadata = helper.metadataForFile('/path/to/file/')
> I can post a code example later today, if that would be helpful.
More information about the MacRuby-devel