Skip navigation.
 
ml[Leopard] bug in [NSGraphicsContext attributes]
FROM : Michael Monscheuer
DATE : Tue Nov 06 14:02:53 2007

Hi!

When creating an NSGraphicsContext using -graphicsContextWithGraphicsPort:flipped:
with a CGPDFContext as graphics port, the dictionary returned by -attributes
of the created NSGraphicsContext no longer contains the documented key-value pairs.

In Tiger the attribute dict contains keys like
NSGraphicsContextRepresentationFormatAttributeName and
NSGraphicsContextDestinationAttributeName.
In Leopard no more.

If you rely on these keys and values, I'd suggest to check your apps.

As this bug also affects possible analysis while printing:
Any ideas how to find out if current context's graphics port
(e.g. while printing a PDF via NSPrintPanel) is a PDF context or not?

Michael

P.S.: Yes, I will file a bug report for sure :-)

---
Michael Monscheuer
www.icalamus.net

Related mailsAuthorDate
ml[Leopard] bug in [NSGraphicsContext attributes] Michael Monscheuer Nov 6, 14:02
mlRe: [Leopard] bug in [NSGraphicsContext attributes] Ken Ferry Nov 7, 08:18
mlRe: [Leopard] bug in [NSGraphicsContext attributes] Michael Monscheuer Nov 7, 14:58