Re: Model initiated change in bindings
Re: Model initiated change in bindings
- Subject: Re: Model initiated change in bindings
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 10 Jul 2004 10:33:41 -0700
On Jul 10, 2004, at 8:59 AM, Jules Bonin-Ducharme wrote:
How do I communicate that the model has changed some of its values?
How are the values being changed? If you call your accessor methods,
you should get automatic support for KVO notifications. Otherwise you
will have to implement change notification manually:
[self willChangeValueForKey:@"level"];
// make change
[self didChangeValueForKey:@"level"];
See:
<
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueObserving/index.html>
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.