Dynamic access to Timer.RunMode does not work, probably because it is enum ??
Though calling the old deprecated property does work.
So this one here does not work:
REALSetPropValueInteger(CloseTimer, "RunMode", 1); // 1 = Timer.RunModes.Single
While the deprecated one does work:
REALSetPropValueInteger(CloseTimer, "Mode", 1); // 1 = Timer.RunModes.Single
Any advise on this @William_Yu on how we handle access to things that have been changed to enum.
Thanks
Looks like an oversight, we’ll need to add some kind of REALSetPropValueEnum, but for the time being you can work around this using REALLoadObjectMethod(CloseTimer, "Assigns RunMode As RunModes")
Thank you William, I will try that.
No that does not load at all.
I am not stuck though I can use the deprecated “Mode” for now.
Ah, sorry the only workaround at present looks to be iterating through all the properties using REALGetClassProperty and invoking the getter/setter that way. We’ll be looking at making REALSetPropValueInteger work for enum properties too, see Issue 76922
Yea thats all good, I will just use the deprecated one for now and then on newer Xojo models switch it to use the fixed one once that comes.
Thanks