Re: Making a bound view re-read its value
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