<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/application-host-and-user-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Application, Host, and User Keys"
}
-->

# Application, Host, and User Keys

Keys used to specify the common preference domains.

## Discussion

Not all combinations of application, host, and user are supported preference domains. Specifically, `kCFPreferencesAnyHost` is not supported in any combination with other options.

## Topics

### Constants

[`let kCFPreferencesAnyApplication: CFString`](/documentation/CoreFoundation/kCFPreferencesAnyApplication)

Indicates a preference that applies to any application.

[`let kCFPreferencesAnyHost: CFString`](/documentation/CoreFoundation/kCFPreferencesAnyHost)

Indicates a preference that applies to any host.

[`let kCFPreferencesAnyUser: CFString`](/documentation/CoreFoundation/kCFPreferencesAnyUser)

Indicates a preference that applies to any user.

[`let kCFPreferencesCurrentApplication: CFString`](/documentation/CoreFoundation/kCFPreferencesCurrentApplication)

Indicates a preference that applies only to the current application.

[`let kCFPreferencesCurrentHost: CFString`](/documentation/CoreFoundation/kCFPreferencesCurrentHost)

Indicates a preference that applies only to the current host.

[`let kCFPreferencesCurrentUser: CFString`](/documentation/CoreFoundation/kCFPreferencesCurrentUser)

Indicates a preference that applies only to the current user.



---

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)