<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButtonCell/getPeriodicDelay(_:interval:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSButtonCell(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) that the button will pause before starting to periodically send action messages to the target object. Default values are taken from the user’s defaults (60 seconds maximum); if the user hasn’t specified a default value, this defaults to 0.4 seconds.

`interval`

On return, the amount of time (in seconds) between each action message. Default values are taken from the user’s defaults (60 seconds maximum); if the user hasn’t specified a default value, this defaults to 0.075 seconds.

## See Also

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

A Boolean value indicating whether the cell sends its action message continuously 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)