Re: [MacRuby-devel] Elegant initialization

2012-04-18 Thread Joshua Ballanco
Welcome! Hope you enjoy your stay! You can write Obj-C-ish methods in MacRuby the same way you call them: using Ruby's hash syntax. The only other caveat is the difference between "super" in Ruby and Obj-C. In Obj-C, "super" is the superclass. In Ruby, it is shorthand for calling the same metho

[MacRuby-devel] Elegant initialization

2012-04-18 Thread Josh Voigts
Hey, first post to the list, woot! I've run into a little bit of a snag. Is there an elegant way of building an initializer similar to this one in macruby? (assuming I'm subclassing an NSView object) - (id)initWithFrame:(NSRect)frame controller:(AppController *)ctrlr {     if (self = [super init