Question about notifying KVO observers of changes to a property.
Question about notifying KVO observers of changes to a property.
- Subject: Question about notifying KVO observers of changes to a property.
- From: Morales Vivó Óscar <email@hidden>
- Date: Thu, 21 May 2009 14:33:07 -0400
I have an cocoa controller object with a property that is actually
read from another, C++ object. It works fine when updating or reading
the value, but sometimes other C++ parts of the program will change
the value of the property and there's no good way to notify the cocoa
controller object of the change.
I wanted to know if it's an issue from, elsewhere in the program, just
call the object's willChangeValueForKey: and didChangeValueForKey: for
a property that automatically notifies when directly changed, or if
there's a more immediate and officially sanctioned way of letting an
object know that it should notify its observers that one of its
properties has changed its value.
Thanks in advance for your help:
Óscar Morales Vivó._______________________________________________
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