• 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
Controller Layer and Automatic Key-Value Observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controller Layer and Automatic Key-Value Observing


  • Subject: Controller Layer and Automatic Key-Value Observing
  • From: Frank Illenberger <email@hidden>
  • Date: Fri, 7 Nov 2003 23:41:47 +0100

Has anybody successfully managed to use the automatic key-value
observing with attributes that are bound in IB???

I constructed bindings between attributes in my NSDocument and some
NSTextFields. I assumed that any programmatic changes to my model
variables via set-methods, direct assignments or takeValueForKey calls
should trigger the appropriate updates in the bound TextFields, but
this is not the case.
I always have to manually call willChangeValueForKey /
didChangeValueForKey for the controller to recognize the changes. This
way the Key-Value Observing is not of very much use.
Does anybody have a working example of automatic Key-Value observing???


Frank Illenberger
_______________________________________________
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: Controller Layer and Automatic Key-Value Observing
      • From: Henrik Wittland <email@hidden>
  • Prev by Date: Re: NSController, currentDocument
  • Next by Date: Re: Parameter lists
  • Previous by thread: NSDrawer
  • Next by thread: Re: Controller Layer and Automatic Key-Value Observing
  • Index(es):
    • Date
    • Thread