---
title: "displayLink(target:selector:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/displaylink(target:selector:)"
---

# displayLink(target:selector:)

Returns a new display link whose callback will be invoked in-sync with the display the window is on.

## Declaration

```swift
func displayLink(target: Any, selector: Selector) -> CADisplayLink
```

## Discussion

Discussion If the window is not on any display the callback will not be invoked.

## See Also

### Accessing Window Information

- [depthLimit](appkit/nswindow/depthlimit.md)
- [hasDynamicDepthLimit](appkit/nswindow/hasdynamicdepthlimit.md)
- [defaultDepthLimit](appkit/nswindow/defaultdepthlimit.md)
- [windowNumber](appkit/nswindow/windownumber.md)
- [windowNumbers(options:)](appkit/nswindow/windownumbers(options:).md)
- [deviceDescription](appkit/nswindow/devicedescription.md)
- [NSDeviceDescriptionKey](appkit/nsdevicedescriptionkey.md)
- [canBecomeVisibleWithoutLogin](appkit/nswindow/canbecomevisiblewithoutlogin.md)
- [sharingType](appkit/nswindow/sharingtype-swift.property.md)
- [backingType](appkit/nswindow/backingtype.md)
