<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/cfbag-predefined-callback-structures",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Predefined Callback Structures"
}
-->

# Predefined Callback Structures

CFBag provides some predefined callbacks for your convenience.

## Topics

### Constants

[`let kCFTypeBagCallBacks: CFBagCallBacks`](/documentation/CoreFoundation/kCFTypeBagCallBacks)

[`let kCFCopyStringBagCallBacks: CFBagCallBacks`](/documentation/CoreFoundation/kCFCopyStringBagCallBacks)

Predefined [`CFBagCallBacks`](/documentation/CoreFoundation/CFBagCallBacks) structure containing a set of callbacks appropriate for use when the values in a CFBag are all CFString objects. The bag makes immutable copies of the strings placed into it.



---

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)