From: Chris M. <ch...@oc...> - 2007-01-24 23:19:44
|
I got tired of having to create classes in IB to match the ruby classes I created, and manually add actions/outlets to them so things would sink up so I wrote: http://pastie.textmate.org/35438 Run it with -h for the options. It assumes you've only got one class that calls ib/ns_outlets per file. The classes.nib file inside a nib seems to be an old style plist format, so I've assumed that's what it is. If this turns out not to be true it could possibly mess up the nib, so make sure you have your pristine copy in version control :) If I can find a way for it to automatically work out the class names from the .rb file I will (suggestions welcome) Cheers, Chris P.S. There isn't actually an ib_action in RubyCocoa yet, but when it's there the script will pick it up |