---
title: newestCode
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsspeechsynthesizer/speechpropertykey/errorkey/newestcode
---

# newestCode

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

## Declaration

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

## See Also

### Type Properties

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