Re: key value observing stops
Re: key value observing stops
- Subject: Re: key value observing stops
- From: Allan Odgaard <email@hidden>
- Date: Tue, 24 Feb 2004 09:56:07 +0100
On 24. Feb 2004, at 9:01, Francisco Tolmasky wrote:
For some reason my key value observing stops after successive calls.
[...]
Since KVO is not based on fuzzy logic, the problem is most likely that
you do something wrong elsewhere -- so it would be useful if you posted
your code.
Though one problem could be that you are setting the same value. E.g.
[obj2 bind:@"Something" toObject:obj1 withKeyPath:@"Something"
options:nil];
[obj1 setSomething:foo]; // will also set in obj2
[obj1 setSomething:foo]; // will skip "notification"
It might be more indirect, e.g. if you set an array, make changes to
that array and set it again, it will not be considered a new value (if
the setter only retains the array).
_______________________________________________
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.