MacRuby: Simple Modal Dialogs
If you’re creating Modal Dialogs, your code can become riddled with various methods. Let’s fix that with some Ruby love.
Creating modal dialogs typically involves creating a couple of methods.
This doesn’t seem like anything to crazy, but if you have multiple modals for an application, this can get tiresome. Let’s give the process some Ruby love.
Now we can create modals without as much code, not to mention that we can create them pragmatically! All you have to do is pass the references to your GUI objects to it (the modal window object, any buttons).
Shablagoo!
