Re: legacy CMSetProfileByAVID replacement
Re: legacy CMSetProfileByAVID replacement
- Subject: Re: legacy CMSetProfileByAVID replacement
- From: Graeme Gill <email@hidden>
- Date: Sat, 7 Oct 2017 10:23:53 +1100
Vitaly Bondar wrote:
Does any documentation to new ColorSync functions exists somewhere in universe?
Or we need to rely on headers comments?
I'm not sure - at the time I had to figure it all out from the header files,
but Googling seems to reveal some references to these functions now.
Seems that Apple did not keep his promise to support 32-bit applications fully
in macOS 10.13.
ColorSyncDeviceSetCustomProfiles function throws debug output:
"CGSSetDisplayColorSpaceAndTransfer(0x2b3c558c, "profile") failed"
and not apply profile normally.
Hmm. I haven't notices this, since I decided to create two binary
releases of ArgyllCMS for Apple Intel, 32 bit compiled for 10.4, and
64 bit compiled for 10.6, and it's only the latter that uses the new
ColorSync API.
The only other thing I recall about changing the code was that there
didn't seem to be any API for getting the profiles file locations
anymore, so I ended up hard coding them.
(I haven't looked at this for a while, so I'm not sure if this has been
addressed or not. No doubt Apple have deprecated more API's since then,
and provided no replacements!)
Graeme Gill.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden