views:

149

answers:

0

I have a nib file that contains a window/view and an instance of NSObjectController. I programatically load the window in the nib setting "self" as owner.

"self" is my custom classs that defines an IBOutlet: an NSDictionary called settings. I now want to have that dictionary as content for the object controller. Is there a way to connect the two outlets?

Code snippet:

self.settings = [NSDictionary initWithCapacity: 1]; // adding key/values left out
[NSBundle loadNibNamed: @"MyDialog" owner: self];

The above code loads a window. Some of the labels are bound to the NSObjectController. However, that controller's content outlet needs to be connected to the settings dictionary.

Thanks!