Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
- Subject: Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
- From: Ken Thomases <email@hidden>
- Date: Mon, 12 Oct 2015 10:06:03 -0500
On Oct 12, 2015, at 6:45 AM, Lakshmi P Shanmugam <email@hidden> wrote:
> I'm running our application on OSX 10.11. NSGraphicsContext
> currentContext() returns nil in one of the drawing methods.
What drawing method and who called it, you or the framework?
For example, I recently worked with somebody who was calling -drawRect: themselves, which is never valid. The context won't be set up in that case because the framework is the one who sets it up prior to calling -drawRect: (which is why calling it yourself isn't valid).
Regards,
Ken
_______________________________________________
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