enum { kMoaMmValueRange_None = 0, kMoaMmValueRange_Min, kMoaMmValueRange_Max, kMoaMmValueRange_MinMax, kMoaMmValueRange_List }; typedef MoaLong MoaMmValueRangeType; #define kMaxPropDescription 128 typedef struct MoaMmValueDesc { MoaMmSymbol name; MoaMmValueType type; MoaMmValue defaultVal; MoaChar pDescription[ kMaxPropDescription ]; MoaMmValueRangeType range; MoaMmValue rangeValue1; MoaMmValue rangeValue2; } MoaMmValueDescription, *PMoaMmValueDescription;
kMoaMmErr_PropertyNotFound | The property is not found. |
kMoaMmErr_AccessNotSupported | The specified style of property access not support. |
put x.foo --> i.GetProp( propName=foo, indexCount=0 ) put x.foo[10] --> i.GetProp( propName=#foo, indexCount=1, pIndexValues={10} ) put x.foo[9..11] --> i.GetProp( propName=#foo, indexCount=2, pIndexValues={9,11} )
kMoaMmErr_PropertyNotFound | The property is not found. |
kMoaMmErr_AccessNotSupported | The specified style of property access is not supported. for example, return this if you don't support indexCount > 0. |
kMoaMmErr_CannotSetProperty | Set not allowed on specified property. |
x.foo = 99 --> i.SetProp( propName=foo, indexCount=0, pNewValue=99 ) x.foo[10] = 99 --> i.GetProp( propName=#foo, indexCount=1, pIndexValues={10}, pNewValue=99 ) x.foo[9..11] = 123 --> i.GetProp( propName=#foo, indexCount=2, pIndexValues={9,11}, pNewValue=123 )
kMoaMmErr_FunctionNotFound | If do not support the method call. |
x.goDown(99) --> CallHandler( callPtr->nargs=2, args={instance, 99} )
kMoaMmErr_FunctionNotFound | If you do not support this method. |
Any other errors as appropriate |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_PropertyNotFound | The property is not found. |
kMoaMmErr_AccessNotSupported | If your Xtra does not support cascaded property access, return this. |
put x.sel[33].foo --> i.AccessProp(propName=#sel, indexCount=1, pIndexValues={33} ) --> i.GetProp( propName=foo, indexCount=0 ) put x.sel[33].foo[10] --> i.AccessProp(propName=#sel, indexCount=1, pIndexValues={33} ) --> i.GetProp( propName=#foo, indexCount=1, pIndexValues={10} ) set x.sel[33].foo[9..11] = "Done!" --> i.AccessProp(propName=#sel, indexCount=1, pIndexValues={33} ) --> i.SetProp( propName=#foo, indexCount=2, pIndexValues={9,11}, pNewValue="Done!" )
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |
kMoaMmErr_AccessNotSupported |