Posts

Post marked as solved
2 Replies
1.1k Views
My scenario is to develop an app extension for a hardened-only (not sandboxed) application of mine. This application cannot be sandboxed because it needs to execute shell commands (pdflatex, bash...), or more generally a user-deployed TeX environment. The "app extension" is a feature I would like to add to my application. But to make it work, the "app extension" must be sandboxed, which is a problem, since there is no entitlement to allow the execution of scripts outside of the sandbox. So I have a hardened application, hosting a sandboxed "app extension" which currently cannot perform useful work. My idea was to call an XPC service from the App extension, that XPC service being non-sandboxed, hosted by the same (hardened-only, non sandboxed) application hosting the App extension. I could succesfully build that, but it does not work. When I call the service from the hosting app, the XPC service is correctly launched on demand, and perfoms correctly. When I call the service from the app extension, the XPC service is not even launched, the remote proxy method call is a no-op (but strangely , no errors are raised, neither when connecting to the service, nor when trying to execute the remote method). I wonder if I misunderstood the way to use XPC to "escape the sandbox". I am doomed, or is there a correct procedure to ultimately call an *external* pdflatex from an app extension ?
Posted
by chacha21.
Last updated
.
Post not yet marked as solved
0 Replies
436 Views
Hello,When setting the alphaValue of an NSWindow, we can still see the window with very low alpha values (<0.05). That's expected.However, with all proper alpha blending enabled, an MTKView is still visible with an alpha (out from fragment shader) of 0.045, but disappears suddenly somewhere between 0.044 and 0.045.This is unexpected since even with 8bit alpha, the minimal step is far smaller (1/255=0,0039)If alphaToCoverageEnabled is set to true, the alpha threshold to see the view vanishing is 0.5.Is there any reason for that behaviour ? Can I improve it to use the full alpha range precision between 0 and 0.044 ?
Posted
by chacha21.
Last updated
.