Hi,


In our product we use
https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc
to create Graphics Context for drawing on top of image.



This particular API returns null in some cases. One particular case is
troubling us. Would like to know why this happens and how to resolve



Here is the problem.

There are two monitors attached to Mac. Main display is retina display and
secondary display is non-retina display. The application is moved from main
display(retina display) to secondary display(non-retina display). In this
case our application redraws the GUI(to use higher resolution images) In
this process we are creating graphics context using the above api. This api
returns null if the main display is retina and secondary display is
non-retina.



It would be helpful if anyone can suggest on how to identify why this api
returns null



Thanks

Sravan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to