1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Improved CoreGraphics clipping. Added a method File::revealToUser(). Added obj-c keywords to the c++ tokeniser. Added a new mode to the file chooser (only implemented on mac so far)

This commit is contained in:
Julian Storer 2009-12-08 11:24:09 +00:00
parent 9a39433405
commit 71a12a140e
15 changed files with 115 additions and 29 deletions

View file

@ -279,6 +279,27 @@ DynamicObject* var::getObject() const throw()
return type == objectType ? value.objectValue : 0;
}
bool var::operator== (const var& other) const throw()
{
switch (type)
{
case voidType: return other.isVoid();
case intType: return value.intValue == (int) other;
case boolType: return value.boolValue == (bool) other;
case doubleType: return value.doubleValue == (double) other;
case stringType: return (*(value.stringValue)) == other.toString();
case objectType: return value.objectValue == other.getObject();
default: jassertfalse; break;
}
return false;
}
bool var::operator!= (const var& other) const throw()
{
return ! operator== (other);
}
const var var::operator[] (const var::identifier& propertyName) const throw()
{
if (type == objectType && value.objectValue != 0)