---
title: NSKeyedArchiverDelegate
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/nskeyedarchiverdelegate
---

# NSKeyedArchiverDelegate

The optional methods implemented by the delegate of a keyed archiver.

## Declaration

```swift
protocol NSKeyedArchiverDelegate : NSObjectProtocol
```

## Topics

### Encoding Data and Objects

- [archiver(_:didEncode:)](foundation/nskeyedarchiverdelegate/archiver(_:didencode:).md)
- [archiverDidFinish(_:)](foundation/nskeyedarchiverdelegate/archiverdidfinish(_:).md)
- [archiver(_:willEncode:)](foundation/nskeyedarchiverdelegate/archiver(_:willencode:).md)
- [archiverWillFinish(_:)](foundation/nskeyedarchiverdelegate/archiverwillfinish(_:).md)
- [archiver(_:willReplace:with:)](foundation/nskeyedarchiverdelegate/archiver(_:willreplace:with:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Keyed Archivers

- [NSKeyedArchiver](foundation/nskeyedarchiver.md)
- [NSKeyedUnarchiver](foundation/nskeyedunarchiver.md)
- [NSKeyedUnarchiverDelegate](foundation/nskeyedunarchiverdelegate.md)
- [NSCoder](foundation/nscoder.md)
- [NSSecureUnarchiveFromDataTransformer](foundation/nssecureunarchivefromdatatransformer.md)
