Пример #1
0
bool Object::setValue(std::string newValue)
{
	//swap out the old object for the new one
	setReferencedObject(objectForID(newValue));
	
	return Object_Base::setValue(newValue);
}
Пример #2
0
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);
}