• 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: NSString drawAtPoint in Mojave
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString drawAtPoint in Mojave


  • Subject: Re: NSString drawAtPoint in Mojave
  • From: Matt Jacobson <email@hidden>
  • Date: Fri, 14 Dec 2018 16:38:33 -0800

Hi,

> On Dec 13, 2018, at 3:27 PM, Tom Doan <email@hidden> wrote:
>
> ITOT that the problem was that I had a call to lockFocusIfCanDraw
> in my drawRect handler (from who knows what prior incarnation of
> the OS) which, according to the documentation is deprecated and
> "does nothing and should not be called”.

I’m glad you figured out the problem.

One small thing to point out: “does nothing and should never be called” is in
the documentation for -lockFocusIfCanDrawInContext:
<https://developer.apple.com/documentation/appkit/nsview/1483534-lockfocusifcandraw>.
  The comment is indeed correct.  It does not and has never done anything on
Mac OS X.

You were probably calling -lockFocusIfCanDraw
<https://developer.apple.com/documentation/appkit/nsview/1483285-lockfocusifcandraw>,
 which does not say that.

Hope that clarifies things a bit,

Matt
_______________________________________________

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:
    • lockFocusIfCanDraw behavior in layer-backed mode
      • From: Tor Arne Vestbø <email@hidden>
References: 
 >Re: NSString drawAtPoint in Mojave (From: Tom Doan <email@hidden>)

  • Prev by Date: Re: Why would a view be asked to draw after its window has been ordered out?
  • Next by Date: lockFocusIfCanDraw behavior in layer-backed mode
  • Previous by thread: Re: NSString drawAtPoint in Mojave
  • Next by thread: lockFocusIfCanDraw behavior in layer-backed mode
  • Index(es):
    • Date
    • Thread