Re: NSString drawAtPoint in Mojave
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