---
title: typeCodeValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsappleeventdescriptor/typecodevalue
---

# typeCodeValue

The contents of the receiver as a type, coercing to typeType if necessary.

## Declaration

```swift
var typeCodeValue: OSType { get }
```

## Discussion

Discussion The contents of the descriptor, as a type, or 0 if an error occurs.

## See Also

### Getting Information About a Descriptor

- [aeDesc](foundation/nsappleeventdescriptor/aedesc.md)
- [booleanValue](foundation/nsappleeventdescriptor/booleanvalue.md)
- [coerce(toDescriptorType:)](foundation/nsappleeventdescriptor/coerce(todescriptortype:).md)
- [data](foundation/nsappleeventdescriptor/data.md)
- [descriptorType](foundation/nsappleeventdescriptor/descriptortype.md)
- [enumCodeValue](foundation/nsappleeventdescriptor/enumcodevalue.md)
- [int32Value](foundation/nsappleeventdescriptor/int32value.md)
- [numberOfItems](foundation/nsappleeventdescriptor/numberofitems.md)
- [stringValue](foundation/nsappleeventdescriptor/stringvalue.md)
