Hi Bob, "As you become more familiar with IB, you will probably do more initialization of objects in IB and less in MacRuby. Nib file expansion instantiates objects and then makes calls to initialize the objects using the same methods that you are using to initialize objects in MacRuby. Actually, in a large application, it would difficult to hook up all of the outlets without using IB."
>From my modest acquaintance with MacRuby that is not exactly the case since >when the NIB instantiates an NSWindowController object , it does not call >"initialize" ,as defined in Ruby , but calls "awakeFromNib". Only when you >instantiate your controller from the code itself , you get your >"initialize"method called. I know I still have a lot of practicing on IB. What I find disturbing ,is that when I do something with IB I cannot see the code created to accommodate my actions ( maybe because I only work in MacRuby and not Objective-C?). Thanks, David On Dec 6, 2012, at 7:42 PM, Robert Carl Rice wrote: > As you become more familiar with IB, you will probably do more initialization > of objects in IB and less in MacRuby. Nib file expansion instantiates objects > and then makes calls to initialize the objects using the same methods that > you are using to initialize objects in MacRuby. Actually, in a large > application, it would difficult to hook up all of the outlets without using > IB.
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macruby-devel