• 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: Question about notifying KVO observers of changes to a property.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about notifying KVO observers of changes to a property.


  • Subject: Re: Question about notifying KVO observers of changes to a property.
  • From: Seth Willits <email@hidden>
  • Date: Thu, 21 May 2009 18:38:55 -0700

On May 21, 2009, at 5:43 PM, Morales Vivó Óscar wrote:

Good point. The problem I'm having is that I don't know when to call the "willChange…" method, only that sometimes I need to call the "didChange…" one.


It's pretty straight forward.

[blah willChange...];
the_change
[blah didChange...];


You shouldn't be calling willChange and then trigger 5 million lines of code and hope somewhere along the lines it calls didChange. And you shouldn't call didChange without calling willChange.



What's the confusing part about that?


-- Seth Willits



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Question about notifying KVO observers of changes to a property. (From: Morales Vivó Óscar <email@hidden>)
 >Re: Question about notifying KVO observers of changes to a property. (From: Peter Duniho <email@hidden>)
 >Re: Question about notifying KVO observers of changes to a property. (From: Morales Vivó Óscar <email@hidden>)

  • Prev by Date: Re: What's the differnece between API and Framework?
  • Next by Date: Re: What's the differnece between API and Framework?
  • Previous by thread: Re: Question about notifying KVO observers of changes to a property.
  • Next by thread: garbage collection and pointer to object
  • Index(es):
    • Date
    • Thread