Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Get CGColorSpace for NSScreen (not working since 10.5.5)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get CGColorSpace for NSScreen (not working since 10.5.5)



Hi Raphael,

weird. It is now working and I did nothing besides restarting OS X.
Anyway, good that it is working.

Best regards
Mark

On 16.09.2008, at 09:51, Dinge Raphael wrote:

Hi Mark,


I have been using the following code to get the CGColorSpaceRef for a NSWindow.


CGDirectDisplayID ddid = [[[[self screen] deviceDescription] objectForKey:@"NSScreenNumber"] longValue];
CMProfileRef profile = NULL;
CGColorSpaceRef colorspace = NULL;
if (CMGetProfileByAVID((CMDisplayIDType) ddid, &profile) == noErr)
{
colorspace = CGColorSpaceCreateWithPlatformColorSpace(profile);
CMCloseProfile(profile);
}
return colorspace;


The code broke with the 10.5.5 update.
Can somebody point me to an alternative way to do it.

Where does it break ?

Raphael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Get CGColorSpace for NSScreen (not working since 10.5.5) (From: Mark <email@hidden>)
 >Re: Get CGColorSpace for NSScreen (not working since 10.5.5) (From: Dinge Raphael <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.