I have a class representing Rational Numbers (RationalNum). It contains 2 ints and a float. I now want to update the GUI with user value changes. So I'm looking at making it a Value::ValueSource (its already a ReferenceCountedObject).
However I'm confused at how to set the 'var' value.
Do I assume that the incoming 'var' points to a valid RationalNum object, and copy its data in?
Or do I need to create a wrapper class that uses my ReferenceCountedObjectPtr to create the var object?
Or would I be better off redesigning the class using var objects around the primitives? One of my goals is to be able to easily save and load these objects as JSON.
On a related note what happened to the great tutorials on Value, var and ValueTrees? They seem to have dissappeared...