Re: Manual KVO and will/didChangeValueForKey
Re: Manual KVO and will/didChangeValueForKey
- Subject: Re: Manual KVO and will/didChangeValueForKey
- From: mmalcolm crawford <email@hidden>
- Date: Thu, 2 Jun 2005 09:12:14 -0700
On Jun 1, 2005, at 11:51 PM, Tim Lucas wrote:
On 02/06/2005, at 3:47 PM, Andrew White wrote:
I'd like to be able to mirror the will/did messages from
otherclass in this class. I'd also like to make sure that I don't
update data twice in
observeValueForKeyPath:ofObject:change:context:, once on the
willChangeValueForKey and once on the didChangeValueForKey.
I think willChangeValueForKey: just gives the any NSEditor's the
chance to finish their editing (anybody confirm this?) -- it won't
send out a KVO change notification.
Umm, no. It gives the observation mechanism an opportunity to record
pre-change values.
Have you tried calling [self (will/did)
ChangeValueForKey:@"property"] from inside your
observeValueForKeyPath: method?
It's not clear what purpose this would serve?
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden