• 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: Bindings & Reverting Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings & Reverting Properties


  • Subject: Re: Bindings & Reverting Properties
  • From: Dave Keck <email@hidden>
  • Date: Fri, 21 Aug 2009 21:14:24 -1000

> What led you to believe you needed to call the setter recursively? All you
> need is:

The only reason I did that was to show that the correct KVO
notifications would be invoked by reverting the happy property from
within the setter. It was a gross oversimplification, and I'm sorry.
:)

I realize that KVO notifications are sent automatically, and
implicitly surround the -setHappy: setter. But to illustrate my point,
I used the setter from within the setter to show that even with two
more (implicit) -willChange/-didChange notifications, the UI does not
reflect the model property if the model property is 'reverted' from
within the setter.
_______________________________________________

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

  • Follow-Ups:
    • Re: Bindings & Reverting Properties
      • From: Quincey Morris <email@hidden>
References: 
 >Bindings & Reverting Properties (From: Dave Keck <email@hidden>)
 >Re: Bindings & Reverting Properties (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Bindings & Reverting Properties
  • Next by Date: Re: Setting multi line Text to Radio button
  • Previous by thread: Re: Bindings & Reverting Properties
  • Next by thread: Re: Bindings & Reverting Properties
  • Index(es):
    • Date
    • Thread