Contents

CFAttributedStringCreateCopy(_:_:)

Creates an immutable copy of an attributed string.

Declaration

func CFAttributedStringCreateCopy(_ alloc: CFAllocator!, _ aStr: CFAttributedString!) -> CFAttributedString!

Parameters

  • alloc:

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

  • aStr:

    The attributed string to copy.

Return Value

An immutable attributed string with characters and attributes identical to those of aStr. Returns NULL if there was a problem copying the object. Ownership follows the The Create Rule.

See Also

Creating a CFAttributedString