Contents

CFPreferencesSetMultiple(_:_:_:_:_:)

Convenience function that allows you to set and remove multiple preference values.

Declaration

func CFPreferencesSetMultiple(_ keysToSet: CFDictionary?, _ keysToRemove: CFArray?, _ applicationID: CFString, _ userName: CFString, _ hostName: CFString)

Parameters

  • keysToSet:

    A dictionary containing the key/value pairs for the preferences to set.

  • keysToRemove:

    An array containing a list of keys to remove.

  • applicationID:

    The ID of the application whose preferences you wish to modify. Takes the form of a Java package name, com.foosoft.

  • userName:

    Kcfpreferencescurrentuser to modify the current user’s preferences, otherwise Kcfpreferencesanyuser to modify the preferences of all users.

  • hostName:

    Kcfpreferencescurrenthost to modify the preferences of the current host, otherwise Kcfpreferencesanyhost to modify the preferences of all hosts.

Discussion

Behavior is undefined if a key is in both keysToSet and keysToRemove

See Also

Setting Preference Values