• 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: Replace -lockFocus with Block-Based Drawing Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Replace -lockFocus with Block-Based Drawing Method
      • From: Ken Thomases <email@hidden>
References: 
 >Why use NSCustomImageRep for drawing in code in NSImage? (From: Jerry Krinock <email@hidden>)
 >Re: Why use NSCustomImageRep for drawing in code in NSImage? (From: Ken Thomases <email@hidden>)
 >Re: Why use NSCustomImageRep for drawing in code in NSImage? (From: Jerry Krinock <email@hidden>)
 >Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…) (From: Jerry Krinock <email@hidden>)
 >Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…) (From: Ken Thomases <email@hidden>)
 >Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…) (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Beep ( frequency, duration)
  • Next by Date: Re: Replace -lockFocus with Block-Based Drawing Method
  • Previous by thread: Re: Replace -lockFocus with Block-Based Drawing Method (was NSCustomImageRep…)
  • Next by thread: Re: Replace -lockFocus with Block-Based Drawing Method
  • Index(es):
    • Date
    • Thread