<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ColorSync",
  "identifier" : "/documentation/ColorSync/ColorSyncIterateInstalledProfiles(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "ColorSync"
    ],
    "preciseIdentifier" : "c:@F@ColorSyncIterateInstalledProfiles"
  },
  "title" : "ColorSyncIterateInstalledProfiles(_:_:_:_:)"
}
-->

# ColorSyncIterateInstalledProfiles(_:_:_:_:)

Iterates over the installed profiles.

```
func ColorSyncIterateInstalledProfiles(_ callBack: ColorSyncProfileIterateCallback?, _ seed: UnsafeMutablePointer<UInt32>?, _ userInfo: UnsafeMutableRawPointer?, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?)
```

## Parameters

`callBack`

A pointer to a client-provided function (can be `NULL`).

`seed`

A pointer to a cache seed owned by the client (can be `NULL`).

`userInfo`

User-defined data passed to the callback.

`error`

On failure, a pointer to an error describing the problem. Optional.

## Discussion

When called for the first time, this function returns only system profiles, because profile
iteration is a slow process requiring multiple accesses to the file system. Clients are advised
to register for [`kColorSyncProfileRepositoryChangeNotification`](/documentation/ColorSync/kColorSyncProfileRepositoryChangeNotification) using `CFNotificationCenter` or
`NSNotificationCenter` to obtain all installed profiles. The notification callback receives, if
possible, a `CFDictionary` containing a new seed value of the profile cache (key
[`kColorSyncProfileCacheSeed`](/documentation/ColorSync/kColorSyncProfileCacheSeed) / value `kCFNumberSInt32Type`). Comparing old and new seed values
may prevent unnecessary calls to iterate installed profiles. Alternatively, call
[`ColorSyncIterateInstalledProfilesWithOptions(_:_:_:_:_:)`](/documentation/ColorSync/ColorSyncIterateInstalledProfilesWithOptions(_:_:_:_:_:)) with the [`kColorSyncWaitForCacheReply`](/documentation/ColorSync/kColorSyncWaitForCacheReply)
option set to `kCFBooleanTrue` to obtain all installed profiles in one call.

---

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)