[MacRuby-devel] [hotcocoa] MVC helper?

Matt Aimonetti mattaimonetti at gmail.com
Thu Apr 16 17:07:10 PDT 2009

I recently worked on a proof of concept with HotCocoa. I wanted to see how
easy it would be to stay in pure Ruby and still use a MVC type approach.
I put together the beginning of a sample app to see how it would work in
real life: http://github.com/mattetti/phare/

I first wanted to make sure to separate the controller code and the view
code. I also wanted to avoid use class variables to deal with my views.
There isn't much there but you can see how I organized the various parts of
my app:


lib/vendor (string.rb extends String, logger.rb will eventually let you log
at different debugging levels, mvc.rb takes care of loading the various

Views just need to respond to render and have a description if you want to
use the segmented controller helper.

Anyways, as I said there isn't much, it's lacking the entire testing part of
the app and the code could definitively be cleaned up/optimized.
I just want to know if that's something others are interested in, or if you
prefer to
1. come up with your own solution every time
2. don't bother with mvc
3. use xcode/ib

- Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090416/e9550b09/attachment.html>

More information about the MacRuby-devel mailing list