---
title: changeCount
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspasteboard/changecount
---

# changeCount

The receiver’s change count.

## Declaration

```swift
var changeCount: Int { get }
```

## Discussion

Discussion The change count starts at zero when a client creates the receiver and becomes the first owner. The change count subsequently increments each time the pasteboard ownership changes. The change count is also returned from clearContents() and declareTypes(_:owner:). You can therefore record the value of changeCount at the time that you take ownership of the pasteboard and compare it with a later value to determine whether you still have ownership.

## See Also

### Related Documentation

- [clearContents()](appkit/nspasteboard/clearcontents().md)
- [declareTypes(_:owner:)](appkit/nspasteboard/declaretypes(_:owner:).md)

### Getting information about a pasteboard

- [name](appkit/nspasteboard/name-swift.property.md)
