views:

19

answers:

1

I have a NSViewController instance loaded by another nib. I think that initWithCoder:(NSCoder *)aDecoder, is called by the father nib. I want to set a proxy object in this new object. How can I do that?

A: 

I would use awakeFromNib instead. It gets called after all of the nib loading stuff is complete, and you can do any of your own initialization (self.proxyobject = ...) that you need.

Nimrod