• 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
NSGraphicsContext currentContext() returns nil on OSX 10.11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSGraphicsContext currentContext() returns nil on OSX 10.11


  • Subject: NSGraphicsContext currentContext() returns nil on OSX 10.11
  • From: Lakshmi P Shanmugam <email@hidden>
  • Date: Mon, 12 Oct 2015 17:15:16 +0530

I'm running our application on OSX 10.11. NSGraphicsContext
currentContext() returns nil in one of the drawing methods. The same code
works fine on OSX 10.9.5 and 10.10.3.
According to the documentation, currentContext returns an instance of a
concrete subclass of NSGraphicsContext. It doesn't mention that it can
return nil.

Is this is a known issue with OSX 10.11? Are there valid/un-documented
cases when currentContext can return nil?

Any help will be appreciated?
Thanks,Lakshmi
_______________________________________________

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: NSGraphicsContext currentContext() returns nil on OSX 10.11
      • From: Ken Thomases <email@hidden>
    • Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
      • From: email@hidden
  • Prev by Date: How to make UISplitViewController behave ?
  • Next by Date: Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
  • Previous by thread: Re: How to make UISplitViewController behave ?
  • Next by thread: Re: NSGraphicsContext currentContext() returns nil on OSX 10.11
  • Index(es):
    • Date
    • Thread