• 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
Re: Manual KVO and will/didChangeValueForKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manual KVO and will/didChangeValueForKey


  • Subject: Re: Manual KVO and will/didChangeValueForKey
  • From: Tim Lucas <email@hidden>
  • Date: Thu, 2 Jun 2005 22:08:37 +1000

On 02/06/2005, at 9:48 PM, Scott Anguish wrote:
On Jun 2, 2005, at 2:51 AM, 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.


    actually, every will must be matched with a did, or things won't work well.

Sure, though my question was more to the purpose of the willChange:, Andrew's question being whether you can be notified of the willChange: call.


From the docs:
- (void)willChangeValueForKey:(NSString *)key
Invoked to inform observers that the receiver is about to change the value of key. ...

How do the observers get informed of this impending change?

- tim lucas
_______________________________________________
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


References: 
 >Manual KVO and will/didChangeValueForKey (From: Andrew White <email@hidden>)
 >Re: Manual KVO and will/didChangeValueForKey (From: Tim Lucas <email@hidden>)
 >Re: Manual KVO and will/didChangeValueForKey (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Custom objects in drag pasteboard?
  • Next by Date: Drags to Finder result in XML clippings [SOLVED]
  • Previous by thread: Re: Manual KVO and will/didChangeValueForKey
  • Next by thread: Re: Manual KVO and will/didChangeValueForKey
  • Index(es):
    • Date
    • Thread