Re: Replace -lockFocus with Block-Based Drawing Method
Re: Replace -lockFocus with Block-Based Drawing Method
- Subject: Re: Replace -lockFocus with Block-Based Drawing Method
- From: Jerry Krinock <email@hidden>
- Date: Tue, 30 Dec 2014 19:57:06 -0800
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 (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