19 Apr
2012
19 Apr
'12
3:44 a.m.
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 initWithFrame:frame]) { controller = ctrlr; // deliberately weak reference. } return self; }