Just to clarify on the guidelines for using -lockFocus in the Resolution 
Independent world…

Apple’s advice to avoid -lockFocus [1] only applies to drawing into NSImage 
objects, which is called “off-screen drawing”.  Using -lockFocus in -[NSView 
drawRect] is, I suppose, “on-screen drawing”, and this is still OK.

Am I correct?

Thanks,

Jerry

1.  
https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/CapturingScreenContents/CapturingScreenContents.html#//apple_ref/doc/uid/TP40012302-CH10-SW32


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to