• 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: Markus Spoettl <email@hidden>
  • Date: Fri, 15 Aug 2008 11:46:15 -0700

On Aug 15, 2008, at 11:02 AM, Quincey Morris wrote:
IAC, Marcus's alternative is to do this:

object.temperature = object.temperature;


I'm not sure how synthesized property setters are are constructed exactly, but I believe that they check for an actual change in the value and set it only if it's different (well at least my own setter do that).

  if (value != newValue) {
    .. change and trigger notification here ..
  }

so assigning the property value to itself wouldn't work. Also, it doesn't work for read-only properties as those don't have a setter.

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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>)

  • Prev by Date: Re: Binding NSButton state to an NSMutableArray inside an NSMutableArray
  • Next by Date: NSLocalizedString, genstrings, and Unicode
  • 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