The documentation is actually outdated on this point: you cannot pass
NULL
On Feb 10, 2008, at 9:17 PM, vade wrote:
hello,
in the documentation for initWithCGLContext states that one can pass
NULL for the colorSpace param so it defaults to the proper RGB
colorspace: (from the QCRenderer class reference dev docs)
\
ColorSpace
A Quartz color space object. This must be an RGB color space. Pass
NULL to use the default RGB color space. For more information on
Quartz color spaces, see Quartz 2D Programming Guide.
The code below throws the error (also, patch vs composition? )
[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]:
Argument "colorSpace" does not verify
"(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) &&
(CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"
Am I doing something wrong, are the docs wrong, or? I am trying to
pass a cached QCComposition object. Thanks - more curious if this is
a documentation issue, just reporting/asking for completeness sakes.