Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stopwatch question



I have a patch that I want to do some things based on a stopwatch (several, actually) with the stopwatch controls exposed all the way up so I can grab them from the QCView.

The first problem that I had was when I would disable the sub-patch that was pulling on the stop watch, the stop watch would effectively stop running and ignore my inputs.

The second problem that I have is that I can only seem to make the stop watch obey its stop and reset function from the Quartz Composer GUI. In fact, if I tie _anything_ to the stop watch start/stop/reset controls, the stop watch ceases to respond to those inputs. I have only been able to successfully stop and reset the stop watch directly by accessing the information panel for the stopwatch in composer itself.

In particular, the following code does as the comments suggest:
    [m_display setValue:[NSNumber numberWithBool: YES] forInputKey:@"start_sphere_timer"];
    // starts the timer

    [m_display setValue:[NSNumber numberWithBool: YES] forInputKey:@"start_sphere_timer"];
    // stops the timer

    [ m_display setValue:[NSNumber numberWithBool: YES] forInputKey:@"reset_sphere_timer"];
        // if the time is running, this seems to stop it from advancing; if the timer is not runing this seems to be a no-op

    [ m_display setValue:[NSNumber numberWithBool: NO] forInputKey:@"reset_sphere_timer"];
        // if the time is running, putting this back lets it advance from its current point; if the timer is not runing this seems to be a no-op

In fact, from the UI in the Quartz Composer app just lowering and rasing the Start flag will cause the stopwatch to reset from 00:00. This is not the case when I try to use the patch programatically, or if I have anything wired to the Start input on the Stopwatch patch.

Any suggestions, comments, clues, or pointers to same greatly appreciated.


Walt Horat
Cisco Systems, Inc.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: JavaScript Pre-calculation (From: Alessandro sabatelli <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.