---
title: oldestCode
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsspeechsynthesizer/speechpropertykey/errorkey/oldestcode
---

# oldestCode

The error code of the first error that occurred since the last call to object(forProperty:) with the errors property.  An NSNumber

## Declaration

```swift
static let oldestCode: NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey
```

## See Also

### Type Properties

- [count](appkit/nsspeechsynthesizer/speechpropertykey/errorkey/count.md)
- [newestCharacterOffset](appkit/nsspeechsynthesizer/speechpropertykey/errorkey/newestcharacteroffset.md)
- [newestCode](appkit/nsspeechsynthesizer/speechpropertykey/errorkey/newestcode.md)
- [oldestCharacterOffset](appkit/nsspeechsynthesizer/speechpropertykey/errorkey/oldestcharacteroffset.md)
