• 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: More bindings confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More bindings confusion


  • Subject: Re: More bindings confusion
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 16 Jul 2004 08:36:30 -0700

On Jul 16, 2004, at 2:20 AM, Gwynne wrote:

On Jul 16, 2004, at 2:59 AM, ScottAnguish wrote:
So if I bind a view's "enabled" binding to Shared Application using the model key path "delegate.kvcCompliantMethod", and implement kvcCompliantMethod in the NSApplication delegate, it will work, but I lose... what?
As I said, you shouldn't, you should use an object controller as an intermediate.
an object controller knows when the document needs to get/abandon changes, and is informed when the UI items change focus, which can cause changes to be committed or abandoned.
always use an object controller. always always always.
1) How do I link an NSObjectController to the shared application, in a nib whose File's Owner isn't the application?

In the Bind to: popup menu, select "Shared Application"...

2) What exact difference does it make in a non-document-based application?

Please read the documentation:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/WhatAreBindings.html>
See section: "Why Are NSControllers Useful?"

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: More bindings confusion
      • From: Scott Anguish <email@hidden>
References: 
 >More bindings confusion (From: Gwynne <email@hidden>)
 >Re: More bindings confusion (From: Scott Anguish <email@hidden>)
 >Re: More bindings confusion (From: Gwynne <email@hidden>)
 >Re: More bindings confusion (From: ScottAnguish <email@hidden>)
 >Re: More bindings confusion (From: Gwynne <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #4492 - 17 msgs
  • Next by Date: Re: Possibly easy question: ignore Mouse downs
  • Previous by thread: Re: More bindings confusion
  • Next by thread: Re: More bindings confusion
  • Index(es):
    • Date
    • Thread