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

# getPeriodicDelay(_:interval:)

Returns the initial delay and repeat values for continuous sending of action messages to target objects.

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

## Parameters

`delay`

On input, a pointer to a floating-point variable. On output, the variable contains the current delay (measured in seconds) before messages are sent. This parameter must not be `NULL`.

`interval`

On input, a pointer to a floating point variable. On output, the variable contains the interval (measured in seconds) at which messages are sent. This parameter must not be `NULL`.

## Discussion

The default implementation returns a delay of `0.2` and an interval of `0.025` seconds. Subclasses can override this method to supply their own delay and interval values.

## See Also

[`var isContinuous: Bool`](/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)