<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSound/loops",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSound(py)loops"
  },
  "title" : "loops"
}
-->

# loops

A Boolean that indicates whether the sound restarts playback when it reaches the end of its content.

```
var loops: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the sounds restarts playback when it finishes and does not send [`sound(_:didFinishPlaying:)`](/documentation/AppKit/NSSoundDelegate/sound(_:didFinishPlaying:)) to its delegate when it reaches the end of its content and restarts playback. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)