---
title: "AEInitializeDesc(_:)"
framework: coreservices
role: symbol
role_heading: Function
path: coreservices/1446047-aeinitializedesc
---

# AEInitializeDesc(_:)

Initializes a new descriptor.

## Declaration

```swift
func AEInitializeDesc(_ desc: UnsafeMutablePointer<AEDesc>!)
```

## Parameters

- `desc`: A pointer to a new descriptor. See doc://com.apple.documentation/documentation/coreservices/aedesc.

## Discussion

Discussion The function sets the type of the descriptor to typeNull and sets the data handle to NULL. If you need to initialize a descriptor that already has some data in it, use AEDisposeDesc(_:) to deallocate the memory and initialize the descriptor. Version-Notes Thread safe starting in OS X v10.2.

## See Also

### Miscellaneous

- [AECheckIsRecord(_:)](coreservices/1444011-aecheckisrecord.md)
