• 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: Making a bound view re-read its value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a bound view re-read its value


  • Subject: Re: Making a bound view re-read its value
  • From: "Michael Ash" <email@hidden>
  • Date: Sat, 16 Aug 2008 10:25:10 -0400

On Fri, Aug 15, 2008 at 6:43 PM, Quincey Morris
<email@hidden> wrote:
> Lastly, before I shut up, in both Markus's question and the thread that Adam
> referred to, the idea was to trigger a KVO update when the property value
> was known to have *not* changed. In those circumstances, I still believe,
> the "emptiness" of the willChange/didChange is moot -- if triggering a KVO
> update is the correct thing to do in that case, then calling
> willChange/didChange is a valid way to do it in that case.

Right, but why are you doing this? If the value hasn't changed, then
there should be no point in triggering a KVO update, because the
entire purpose of a KVO update is to notify when the value changes.
Needing to send such an empty update is indicative of some sort of
problem with your code.

Mike
_______________________________________________

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: 
 >Making a bound view re-read its value (From: Markus Spoettl <email@hidden>)
 >Re: Making a bound view re-read its value (From: Negm-Awad Amin <email@hidden>)
 >Re: Making a bound view re-read its value (From: Markus Spoettl <email@hidden>)
 >Re: Making a bound view re-read its value (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Making a bound view re-read its value (From: Quincey Morris <email@hidden>)
 >Re: Making a bound view re-read its value (From: "Michael Ash" <email@hidden>)
 >Re: Making a bound view re-read its value (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Opening an external file in a external application
  • Next by Date: Re: Changing NSTextFieldCells' editing appearance?
  • Previous by thread: Re: Making a bound view re-read its value
  • Next by thread: Re: Making a bound view re-read its value
  • Index(es):
    • Date
    • Thread