In my application, I have a static text field controlled both by code and by a stepper. It's a timeout counter, and when I hit the timeout button, it decrements by one.
Code references:
property hostTimeouts: 3 --starting value for host timeouts
set my hostTimeouts to hostTimeouts - 1 --decrement remaining timeouts
That works great. When I hit the button, everything happens the way it should. However, I also have a stepper set up, because as will happen in sporting events, a team may get a timeout back, or be penalized one. The stepper works correctly as well.
The problem comes if I hit the timeout button AFTER using the stepper, I get this error:
2012-01-04 16:08:57.574 Derby Score[6482:707] *** -[Derby_ScoreAppDelegate homeTeamTimeOut:]: Can’t make «class ocid» id «data kptr0000000040E9270004000000» into type number, date or text. (error –1700)
I'm rather confused here, because I'm not sure what the stepper is doing to the static text field/property.
Thanks,
john
--
"I think love is a snowmobile racing across the arctic tundra which suddenly
flips, pinning you underneath. At night, the ice-weasels come...."
Matt Groening