Function

CFPreferencesCopyApplicationList(_:_:)

Constructs and returns the list of all applications that have preferences in the scope of the specified user and host.

Declaration

func CFPreferencesCopyApplicationList(_ userName: CFString, _ hostName: CFString) -> CFArray?

Parameters

userName

kCFPreferencesCurrentUser to search the current-user domain, otherwise kCFPreferencesAnyUser to search the any-user domain.

hostName

kCFPreferencesCurrentHost to search the current-host domain, otherwise kCFPreferencesAnyHost to search the any-host domain.

Return Value

The list of application IDs. Ownership follows the The Create Rule.

See Also

Miscellaneous Functions

func CFPreferencesAppValueIsForced(CFString, CFString) -> Bool

Determines whether or not a given key has been imposed on the user.