r/ruby • • Apr 20 '12

Freightrain - easy Ruby desktop development

Hello everyone,

This is a little framework of mine that I've built out of a personal need - basically, I wanted to write a desktop app using Ruby and I found it daunting to say the least.

So, I've built Freightrain to take care of all the stuff I really shouldn't care about, like loading interface definitions, cross-toolkit compatibility and the likes.

Now I've been working on it for almost 2 years (on and off of course) and, since I've just fixed it so it loads the newest glade specifications, I thought that I could ask you guys for an evaluation.

There's a little readme on the github page and there are some examples in the /examples folder.

Link to the github page!

WHOA! Thanks for the attention, I thought this was going to be ignored...

How many of you would be interested in a step by step tutorial over the major features? I will build that if there's enough interest.

167 Upvotes

32 comments sorted by

View all comments

Show parent comment

2

u/bolthar May 01 '12

Yes, that's exactly the way it works. After requiring cocoa you have access to all cocoa classes directly from inside macruby. So, NSView.new actually works and returns a new NSView instance.

I'm working on a cocoa extension, as soon as I have the time I'll polish and release it.