Re: Bindings question
Re: Bindings question
- Subject: Re: Bindings question
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 23 Feb 2004 17:19:14 -0800
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:.
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.