[MacRuby-devel] Problem with a window controller

david kramf dakr.012 at gmail.com
Fri Dec 7 09:48:39 PST 2012


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20121207/8b51bcea/attachment.html>


More information about the MacRuby-devel mailing list