mtmccrea / ValueView.quark

A SuperCollider quark which lets you create customizable UI views associated with values and assignable actions.
GNU General Public License v3.0
3 stars 0 forks source link

ERROR: Message 'clickModeInRange_' not understood. #1

Open erikparr opened 4 years ago

erikparr commented 4 years ago

When I click the UI objects in the example I get the following error:

ERROR: Message 'clickModeInRange_' not understood.
RECEIVER:
Instance of RotaryView {    (0x125339b98, gc=34, fmt=00, flg=00, set=07)
  instance variables [98]
    qObject : RawPointer 0x7ff82ae2a750
    finalizer : instance of Finalizer (0x126d2fdf8, size=2, set=1)
    virtualSlots : instance of Array (0x125721118, size=1, set=2)
    wasRemoved : false
    font : nil
    resize : Integer 1
    alpha : Float 1.000000   00000000 3FF00000
    decorator : nil
    layout : nil
    userCanClose : true
    deleteOnClose : true
    action : instance of Function (0x1283ead48, size=2, set=2)
    mouseDownAction : instance of Function (0x125660728, size=2, set=2)
    mouseUpAction : nil
    mouseEnterAction : nil
    mouseLeaveAction : nil
    mouseMoveAction : instance of Function (0x12565bfc8, size=2, set=2)
    mouseOverAction : nil
    mouseWheelAction : nil
    keyDownAction : nil
    keyUpAction : nil
    keyModifiersChangedAction : nil
    keyTyped : nil
    focusGainedAction : nil
    focusLostAction : nil
    dragLabel : nil
    beginDragAction : nil
    canReceiveDragHandler : nil
    receiveDragHandler : nil
    toFrontAction : nil
    endFrontAction : nil
    onClose : instance of Function (0x125720378, size=2, set=2)
    onResize : instance of Function (0x125747638, size=2, set=2)
    onMove : nil
    spec : instance of ControlSpec (0x1283a3148, size=9, set=4)
    value : Float 0.000000   00000000 00000000
    input : Float 0.000000   00000000 00000000
    action : nil
    wrap : false
    limitRefresh : false
    maxRefreshRate : Integer 25
    updateWait : Float 0.040000   47AE147B 3FA47AE1
    allowUpdate : true
    updateHeld : false
    suppressRepeatedAction : true
    autoRefresh : true
    broadcastNewOnly : false
    mouseDownPnt : nil
    mouseUpPnt : nil
    mouseMovePnt : nil
    mouseDownAction : nil
    mouseUpAction : nil
    mouseMoveAction : nil
    valuePerPixel : Float 1.800000   CCCCCCCD 3FFCCCCC
    scroll : true
    keyStep : Float 0.033333   F46EFD39 3FA11110
    scrollStep : Float 0.010000   47AE147B 3F847AE1
    xScrollDir : Integer 1
    yScrollDir : Integer -1
    keyDirLR : Integer 1
    keyDirUD : Integer 1
    userView : instance of UserView (0x12a7325a8, size=37, set=6)
    layers : instance of Array (0x107d0a9d8, size=6, set=3)
    innerRadiusRatio : Float 0.000010   88E368F1 3EE4F8B5
    outerRadiusRatio : Integer 1
    borderPx : Integer 1
    borderPad : Integer 1
    stValue : nil
    stInput : nil
    clickMode : Symbol 'absolute'
    direction : Symbol 'ccw'
    dragMode : Symbol 'circular'
    bipolar : false
    startAngle : Integer 0
    sweepLength : Float 6.283185   54442D18 401921FB
    prCenterAngle : Float -4.712389   7F3321D2 C012D97C
    centerNorm : Float 0.500000   00000000 3FE00000
    centerValue : Float 180.000000   00000000 40668000
    bnds : nil
    cen : nil
    maxRadius : Float 150.000000   00000000 4062C000
    innerRadius : Float 0.001500   BC6A7EFA 3F589374
    outerRadius : Float 150.000000   00000000 4062C000
    wedgeWidth : Float 149.998500   B645A1CB 4062BFF3
    dirFlag : Integer -1
    prStartAngle : Float -1.570796   54442D18 BFF921FB
    prSweepLength : Float -6.283185   54442D18 C01921FB
    levelSweepLength : nil
    majTicks : instance of List (0x1255de1e8, size=1, set=2)
    minTicks : instance of List (0x1255de738, size=1, set=2)
    majTickVals : instance of Array (0x126d2bb58, size=8, set=3)
    minTickVals : instance of Array (0x1255d31e8, size=0, set=0)
    range : instance of RotaryRangeLayer (0x12579f1d8, size=2, set=2)
    level : instance of RotaryLevelLayer (0x12579e978, size=2, set=2)
    text : instance of RotaryTextLayer (0x118cd72b8, size=2, set=2)
    ticks : instance of RotaryTickLayer (0x1255cf398, size=2, set=2)
    handle : instance of RotaryHandleLayer (0x12561f278, size=2, set=2)
    outline : instance of RotaryOutlineLayer (0x125644b58, size=2, set=2)
}
ARGS:
   Symbol 'absolute'
CALL STACK:
    DoesNotUnderstandError:reportError
        arg this = <instance of DoesNotUnderstandError>
    Nil:handleError
        arg this = nil
        arg error = <instance of DoesNotUnderstandError>
    Thread:handleError
        arg this = <instance of Thread>
        arg error = <instance of DoesNotUnderstandError>
    Object:throw
        arg this = <instance of DoesNotUnderstandError>
    Object:doesNotUnderstand
        arg this = <instance of RotaryView>
        arg selector = 'clickModeInRange_'
        arg args = [*1]
    < closed FunctionDef >
        var col = <instance of Color>
    Interpreter:interpretPrintCmdLine
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "(
var col = Color.hsv(0.6,1,..."
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Message 'clickModeInRange_' not understood.
RECEIVER: a RotaryView
erikparr commented 4 years ago

And when dragging on the UI I also get this:


ERROR: Message 'inRange' not understood.
RECEIVER:
   Float 5.748591   A284F36C 4016FE8E
ARGS:
   Integer 0
   Float 6.283185   54442D18 401921FB
CALL STACK:
    DoesNotUnderstandError:reportError
        arg this = <instance of DoesNotUnderstandError>
    Nil:handleError
        arg this = nil
        arg error = <instance of DoesNotUnderstandError>
    Thread:handleError
        arg this = <instance of Thread>
        arg error = <instance of DoesNotUnderstandError>
    Object:throw
        arg this = <instance of DoesNotUnderstandError>
    Object:doesNotUnderstand
        arg this = 5.7485909837386
        arg selector = 'inRange'
        arg args = [*2]
    RotaryView:respondToCircularMove
        arg this = <instance of RotaryView>
        arg mMovePnt = <instance of Point>
        var pos = <instance of Point>
        var rad = -1.0362020033539
        var radRel = 5.7485909837386
    View:mouseMoveEvent
        arg this = <instance of UserView>
        arg x = 195
        arg y = 74
        arg modifiers = 0
        arg buttons = 1
^^ The preceding error dump is for ERROR: Message 'inRange' not understood.
RECEIVER: 5.7485909837386