Hi,
I am no programmer and I don’t know any. I can’t get the following addition to work in varaiant.h. Any help would be much appreciated. I have tried typedefing
Hi Jules,
I am taking my day off, but that didn’t work for me. I will try reinstalling JUCE tomorrow. Maybe I have messed up the JUCE code somewhere.
Thank you.
Both versions working now. I haven’t changed anything yet. Was getting two Xcode errors despite many variations. I was not implementing any instances yet.
The errors were
the errors start again. The code assumes one get an
Array<var>
from a
var&
The code doesn’t appear to work even with a further templated passing of
property.getArray()
from cached_value.h.
Anyone have any tricky thoughts on how to make this less tricky. Once one can save Point to a cachedValue, then one can translate the principle to further types like Rectangles. This will make it easy to save these types to valuetree via linked cachedValues, which has a lot of uses.
Thank you
Hi,
Programming has those nightmare days all blurred into one. Trying to get the basic cachedValue working has been part of a little nightmare. I am using Dave’s variant converter.
template <> struct VariantConverter<Colour>
{
static Colour fromVar (const var& v)
{
return Colour::fromString ( v.toString() );
}
static var toVar (const Colour& c)
{
return c.toString();
}
};