[MacRuby-devel] Focus window from second XIB

Sven Schwyn svoop at delirium.ch
Tue Mar 1 15:40:47 PST 2011


> If the file's owner is the controller, you should not be adding a controller object to the nib, because then you will wind up with two of them.

Makes sense. And reading a little on File's Owner, it seems to be the right choice - at least for other than the MainMenu.xib.

Setting up a separate NSObject as delegate is how it's done in the "MacRuby in Action" book for MainMenu.xib. Apparently it doesn't really work for other XIBs though. Is there any particular advantage a separate delegate has compared to File's Owner? 


More information about the MacRuby-devel mailing list