• 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: How to determine when printing an NSView ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to determine when printing an NSView ?


  • Subject: Re: How to determine when printing an NSView ?
  • From: Greg Titus <email@hidden>
  • Date: Wed, 17 Jul 2002 14:39:53 -0700

On Wednesday, July 17, 2002, at 07:58 AM, Robert Miller wrote:

This is probably a basic question or then again maybe not but, here goes... Can someone tell me if there exists a way to determine if when inside of an NSView's drawRect method it is being drawn into a printer port rather than the display. I know how to do it in Carbon but haven't had any luck with Cocoa, I'm sure I've missed something ? Any helo would be greatly appreciated ?

Hi Bob,

Use: [[NSGraphicsContext currentContext] isDrawingToScreen].

Hope this helps,
-Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to determine when printing an NSView ? (From: Robert Miller <email@hidden>)

  • Prev by Date: Re: [Seriously OT]Mac.com 60 days and counting
  • Next by Date: Re: [Seriously OT]Mac.com 60 days and counting
  • Previous by thread: How to determine when printing an NSView ?
  • Next by thread: Re: How to determine when printing an NSView ?
  • Index(es):
    • Date
    • Thread