• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Leopard] bug in [NSGraphicsContext attributes]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Leopard] bug in [NSGraphicsContext attributes]


  • Subject: Re: [Leopard] bug in [NSGraphicsContext attributes]
  • From: "Ken Ferry" <email@hidden>
  • Date: Tue, 6 Nov 2007 23:18:31 -0800

Hi Michael,

Yes, please file a bug if something changed here.

Would -[NSGraphicsContext isDrawingToScreen] work for you?  It really
has more to do with whether the destination context is pixel-based
than with whether it's the screen.

"A return value of NO may mean that the drawing destination is a
printer, but the destination may also be a PDF or EPS file."

This will not help if your goal is to distinguish between printing to
a printer and printing to a PDF.

-Ken
Cocoa Frameworks

On Nov 6, 2007 5:02 AM, Michael Monscheuer <email@hidden> wrote:
> 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
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [Leopard] bug in [NSGraphicsContext attributes]
      • From: Michael Monscheuer <email@hidden>
References: 
 >[Leopard] bug in [NSGraphicsContext attributes] (From: Michael Monscheuer <email@hidden>)

  • Prev by Date: Re: New to Programming, XCode 2.5 vs 3.0 and finding good examples
  • Next by Date: Proper way to implement zoom in CA?
  • Previous by thread: [Leopard] bug in [NSGraphicsContext attributes]
  • Next by thread: Re: [Leopard] bug in [NSGraphicsContext attributes]
  • Index(es):
    • Date
    • Thread