<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTRunDelegateCreate(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTRunDelegateCreate"
  },
  "title" : "CTRunDelegateCreate(_:_:)"
}
-->

# CTRunDelegateCreate(_:_:)

Creates an immutable instance of a run delegate.

```
func CTRunDelegateCreate(_ callbacks: UnsafePointer<CTRunDelegateCallbacks>, _ refCon: UnsafeMutableRawPointer?) -> CTRunDelegate?
```

## Parameters

`callbacks`

A structure holding pointers to the callbacks for this run delegate.

`refCon`

A constant value associated with the run delegate to identify it.

## Return Value

If  successful, a reference to an immutable CTRunDelegate object. Otherwise, returns `NULL`.

## Discussion

The run-delegate object can be used for reserving space in a line or for eliding the glyphs for a range of text altogether.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)