Contents

setUserInfoObject(_:forKey:)

Sets a value in the user info dictionary.

Declaration

func setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)

Parameters

  • objectOrNil:

    The object to set for the specified key, or nil to remove an existing entry in the dictionary.

  • key:

    The key for storing the specified object.

Discussion

Use this method to set a value in the userInfo dictionary, with appropriate KVO notification for properties with values that can depend on values in the user info dictionary, like localizedDescription.

Supply a value of nil to remove an existing dictionary entry for a specified key.

See Also

Inspecting Progress Information