<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSEvent/stopPeriodicEvents()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSEvent(cm)stopPeriodicEvents"
  },
  "title" : "stopPeriodicEvents()"
}
-->

# stopPeriodicEvents()

Stops generating periodic events for the current thread and discards any periodic events remaining in the queue.

```
class func stopPeriodicEvents()
```

## Discussion

This message is ignored if periodic events aren’t currently being generated.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)