bool Object::setValue(std::string newValue) { //swap out the old object for the new one setReferencedObject(objectForID(newValue)); return Object_Base::setValue(newValue); }
void Object::attributeDidChange(int attributeID) { switch (attributeID) { case id_Object_value: //swap out the old object for the new one setReferencedObject(objectForID(value)); return; } Object_Base::attributeDidChange(attributeID); }