Instance Property

changeCount

The receiver’s change count.

Declaration

@property(readonly) NSInteger changeCount;

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

Getting Information about a Pasteboard

name

The receiver’s name.