Controller Layer and Automatic Key-Value Observing
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.