Re: Bindings question
Re: Bindings question
- Subject: Re: Bindings question
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 23 Feb 2004 17:47:24 -0800
On Feb 23, 2004, at 5:19 PM, mmalcolm crawford wrote:
I've built the sample media assets app, and it works fine. But when I
build it not using an NSDocument, I get the following. I had set the
content of the two array controllers to my controller class, which was
the same as the NSDocument version, it just used NSObject as it's
superclass instead.[...]
You cannot at the moment bind to arbitrary other objects in a NIB
file. You'll have to make the binding programatically, using
-bind:toObject:withKeyPath:options:.
To clarify:
"You cannot at the moment using Interface Builder bind to arbitrary
other objects in a NIB file."
You can establish a binding programatically to any suitable objects to
which you have a reference in the NIB. In this case I'd expect your
controller object to have outlets to each of the NSControllers, and
bind them with the appropriate key paths to 'self'.
mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.