Hi Alan!

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?

Ruben

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 your
macruby application (header and implementation file). You can then use
it in your ruby code without any hassle, it's great. For example, if you create an Objective-C class called 'MetaDataHelper', you can use it like
this:
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.
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to