Problem in the creation of Graphics context(NSGraphicsContext)
Problem in the creation of Graphics context(NSGraphicsContext)
- Subject: Problem in the creation of Graphics context(NSGraphicsContext)
- From: Sravan Kumar Lakkimsetti via Cocoa-dev <email@hidden>
- Date: Wed, 4 Mar 2020 11:49:41 +0530
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 (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