<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColorSpace/init(colorSyncProfile:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColorSpace(im)initWithColorSyncProfile:"
  },
  "title" : "init(colorSyncProfile:)"
}
-->

# init(colorSyncProfile:)

Initializes and returns a color space object from the specified ColorSync profile.

```
init?(colorSyncProfile prof: UnsafeMutableRawPointer)
```

## Parameters

`prof`

The ColorSync profile to use when initializing the `NSColorSpace` object. This should be an object of opaque type CMProfileRef. See <doc://com.apple.documentation/documentation/applicationservices/colorsync_manager> for further information on CMProfileRef.

## Return Value

The initialized `NSColorSpace` object or `nil` if initialization was not successful.

## See Also

[`colorSyncProfile`](/documentation/AppKit/NSColorSpace/colorSyncProfile)

The ColorSync profile from which the color space was created.



---

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)