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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to