---
title: kCFTypeDictionaryKeyCallBacks
framework: corefoundation
role: symbol
role_heading: Global Variable
path: corefoundation/kcftypedictionarykeycallbacks
---

# kCFTypeDictionaryKeyCallBacks

Predefined CFDictionaryKeyCallBacks structure containing a set of callbacks appropriate for use when the keys of a CFDictionary are all CFType-derived objects.

## Declaration

```swift
let kCFTypeDictionaryKeyCallBacks: CFDictionaryKeyCallBacks
```

## Discussion

Discussion The retain callback is CFRetain, the release callback is CFRelease, the copy callback is CFCopyDescription, the equal callback is CFEqual. Therefore, if you use a pointer to this constant when creating the dictionary, keys are automatically retained when added to the collection, and released when removed from the collection.

## See Also

### Constants

- [kCFCopyStringDictionaryKeyCallBacks](corefoundation/kcfcopystringdictionarykeycallbacks.md)
- [kCFTypeDictionaryValueCallBacks](corefoundation/kcftypedictionaryvaluecallbacks.md)
