#7 Motion Trigger fix - (Optionally) reset timer on motion

General (4)

This patch is a response to Artifact ID 3084853 (which can be found at https://sourceforge.net/tracker/?func=detail&aid=3084853&group_id=198330&atid=965044\). I have slightly rearranged the layout of the Alarm preferences window, as well as added a checkbox to allow the user to decide if they want the alarm timer to reset on each motion detection or not. I have also updated the user defaults to set this feature to on by default.

The soundAlarm: method of AppController has been updated to only disable the motion sensor if the feature is switched off. The motionTriggered: method of AppController has been updated to check if the feature is on and the alarm is already sounding. If so, it simply resets the alarm timer. If not, it triggers the alarm by the normal method.

This patch has been tested on Mac OS X 10.6.4, using XCode 3.2.3, and all appears to be working fine. Unfortunately, the layout change has only been made in the English version.


  • Peter Easdown

    Peter Easdown - 2010-11-07

    Thanks for the patch. I was planning to do something about this one in the next or one-after release. I'll aim at integrating your changes in 0.70.


  • Peter Easdown

    Peter Easdown - 2011-01-19

    This has been integrated into release 0.70.

  • Peter Easdown

    Peter Easdown - 2011-01-19
    • assigned_to: nobody --> ezsource
    • status: open --> pending-accepted
  • SourceForge Robot

    • status: pending-accepted --> closed-accepted
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

  • Peter Easdown

    Peter Easdown - 2011-03-14
    • status: closed-accepted --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks