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.