Contents

CFURLCreateCopyAppendingPathExtension(_:_:_:)

Creates a copy of a given URL and appends a path extension.

Declaration

func CFURLCreateCopyAppendingPathExtension(_ allocator: CFAllocator!, _ url: CFURL!, _ extension: CFString!) -> CFURL!

Parameters

  • allocator:

    The allocator to use to allocate memory for the new CFURL object. Pass NULL or Kcfallocatordefault to use the current default allocator.

  • url:

    The CFURL object to which to append a path extension.

  • extension:

    The extension to append to url.

Return Value

A copy of url appended with extension. Ownership follows the create rule. See The Create Rule.

See Also

Creating a CFURL