         self.statusItem!.view = progressIndicator
         
         self.menuItemForStopDidClick(NSMenuItem())
-
     }
 
 }

        if self.captureSession.canAddInput(captureInput) {
            self.captureSession.addInput(captureInput)
        }
        
        if self.captureSession.canAddOutput(self.videoStillImageOutput) {
            self.captureSession.addOutput(self.videoStillImageOutput)
        }
        
        if self.captureSession.canAddOutput(self.videoMovieFileOutput) {
            self.captureSession.addOutput(self.videoMovieFileOutput)
        }

            delayTime: delayTime,
            loopCount: 0
        )

        _ = regift.createGif()

        // hide menu
        self.statusItem!.image = nil
