CFErrorCreateWithUserInfoKeysAndValues(_:_:_:_:_:_:)
Creates a new CFError object using given keys and values to create the user info dictionary.
Declaration
func CFErrorCreateWithUserInfoKeysAndValues(_ allocator: CFAllocator!, _ domain: CFErrorDomain!, _ code: CFIndex, _ userInfoKeys: UnsafePointer<UnsafeRawPointer?>!, _ userInfoValues: UnsafePointer<UnsafeRawPointer?>!, _ numUserInfoValues: CFIndex) -> CFError!Parameters
- allocator:
The allocator to use to allocate memory for the new object. Pass
NULLor Kcfallocatordefault to use the current default allocator. - domain:
A CFString that identifies the error domain. If this reference is
NULLor is otherwise not a valid CFString, the behavior is undefined. - code:
A CFIndex that identifies the error code. The code is interpreted within the context of the error domain.
- userInfoKeys:
An array of
numUserInfoValuesCFStrings used as keys in creating the userInfo dictionary. The value of this parameter can beNULLifnumUserInfoValuesis0. - userInfoValues:
An array of
numUserInfoValuesCF types used as values in creating the userInfo dictionary. The value of this parameter can beNULLifnumUserInfoValuesis0. - numUserInfoValues:
The number of keys and values in the
userInfoKeysanduserInfoValuesarrays.
Return Value
A new CFError object. Ownership follows the The Create Rule.