• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Stepper confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stepper confusion


  • Subject: Stepper confusion
  • From: "John C. Welch" <email@hidden>
  • Date: Wed, 04 Jan 2012 16:15:21 -0500
  • Thread-topic: Stepper confusion

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


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Stepper confusion
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Keeping a window active and frontmost
  • Next by Date: Re: Stepper confusion
  • Previous by thread: Keeping a window active and frontmost
  • Next by thread: Re: Stepper confusion
  • Index(es):
    • Date
    • Thread