Re: How to determine when printing an NSView ?
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.