Re: Bindings question
Re: Bindings question
- Subject: Re: Bindings question
- From: T Reaves <email@hidden>
- Date: Mon, 23 Feb 2004 21:33:23 -0500
On Feb 23, 2004, at 8:19 PM, mmalcolm crawford wrote:
On Feb 23, 2004, at 4:59 PM, T Reaves wrote:
To properly use bindings, do I need to use a document based
application?
No.
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. [...]
2004-02-23 19:56:33.330 MVC2Example[23800] [<NSApplication 0x328830>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key authors.
It looks like you bound the controllers to the NSApplication instance
(File's Owner), and not your controller?
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:.
O.K., that is probably what it was. I did not see my controller in
the options to bind to, so I chose File's Owner and set my controller
to the delegate. I'll look at the programatic method you list.
Thanks
_______________________________________________
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.