• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Bindings question
      • From: T Reaves <email@hidden>
    • Re: Bindings question
      • From: mmalcolm crawford <email@hidden>
References: 
 >Bindings question (From: T Reaves <email@hidden>)

  • Prev by Date: Re: Problems with ApplicationShouldTerminateAfter...
  • Next by Date: Re: Bindings question
  • Previous by thread: Bindings question
  • Next by thread: Re: Bindings question
  • Index(es):
    • Date
    • Thread