<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/kCFTypeSetCallBacks",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@kCFTypeSetCallBacks"
  },
  "title" : "kCFTypeSetCallBacks"
}
-->

# kCFTypeSetCallBacks

```
let kCFTypeSetCallBacks: CFSetCallBacks
```

## Discussion

Predefined [`CFSetCallBacks`](/documentation/CoreFoundation/CFSetCallBacks) structure containing a set of callbacks  appropriate for use when the values in a CFSet are all CFType-derived objects. The retain callback is [`CFRetain`](/documentation/CoreFoundation/CFRetain), the release callback is [`CFRelease`](/documentation/CoreFoundation/CFRelease), the copy callback is [`CFCopyDescription(_:)`](/documentation/CoreFoundation/CFCopyDescription(_:)), the equal callback is [`CFEqual(_:_:)`](/documentation/CoreFoundation/CFEqual(_:_:)), and the hash callback is [`CFHash(_:)`](/documentation/CoreFoundation/CFHash(_:)). Therefore, if you use this constant when creating the collection, items are automatically retained when added to the collection, and released when removed from the collection.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)