<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/getPeriodicDelay(_:interval:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSButton(im)getPeriodicDelay:interval:"
  },
  "title" : "getPeriodicDelay(_:interval:)"
}
-->

# getPeriodicDelay(_:interval:)

Returns by reference the delay and interval periods for a continuous button.

```
func getPeriodicDelay(_ delay: UnsafeMutablePointer<Float>, interval: UnsafeMutablePointer<Float>)
```

## Parameters

`delay`

On return, the amount of time (in seconds) the button will pause before starting to periodically send action messages to the target object. The default delay is taken from a user’s default (60 seconds maximum). If the user hasn’t specified a default value, `delay` defaults to 0.4 seconds,

`interval`

On return, the amount of time (in seconds) the button will pause between sending each action message. The default interval is taken from a user’s default (60 seconds maximum). If the user hasn’t specified a default value, `interval` defaults to 0.075 seconds.

## See Also

[`continuous`](/documentation/AppKit/NSControl/isContinuous)

A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking.



---

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)