• 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 problem.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stepper problem.


  • Subject: Stepper problem.
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 21 Mar 2013 17:33:08 +1100

G'day scripters

In Applescript ObjC is there any way to tell if the top or bottom of a stepper is  being clicked on?

I'm trying to get a stepper to act as tho it's partly logarithmic in it's response.

1-10 Step in 1's

10-100 Step in 10's

100 to 10,000 step in 100's

The code I've got works, up until the values of 10 and 100 (the transition points) are used and saved, then when re-starting, the saved steps are 10 and 100, and when going downwards, jump from 100 to 1, or 10 to 1.

I think it's not possible to do this, but I don't have room for two sliders (I've got two routines)

Regards

Santa

on setEmptyTrash_(sender)
        set trashEmptyNumber to trashEmptyNumber as integer
        set trashIncrement to trashIncrement as integer
        if  (trashEmptyNumber ≤ 11  and trashIncrement ≥ 10) or trashEmptyNumber  ≤ 9 then
             set trashIncrement to 1
        else
        if (trashEmptyNumber ≤ 90  and trashIncrement ≥ 10) or trashEmptyNumber ≤99  then
             set trashIncrement to 10
        else
            if (trashEmptyNumber ≥ 90 and trashIncrement = 10) then
                 set trashIncrement to 100
            else
                if (trashEmptyNumber ≤ 100 and trashIncrement = 100) then set trashIncrement to 10
            end if
        end if
        end if
        trashStepper's setIncrement_(trashIncrement)
        my saveThePrefs()
    end setEmptyTrash_

 _______________________________________________
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

  • Prev by Date: Re: Still not getting it
  • Next by Date: Re: Stepper problem.
  • Previous by thread: Re: Still not getting it
  • Next by thread: Re: Stepper problem.
  • Index(es):
    • Date
    • Thread