Post

Replies

Boosts

Views

Activity

Reply to Core Image drawing corruption
I've done some further experiments: if I set the CGImage (obtained from the CIImage) directly onto the contents property of the layer of my view, then it works and display fine. But if I implement drawRect() and draw the CGImage into the CGContext using CGContextDrawImage() then it appears corrupted. How weird is that?
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel here's a screen recording, top view is drawing the image in drawRect(), bottom view is assigning the image to the layer contents. The bottom view display what I expect. http://tclementdev.com/coreimage_metal_test.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel wow thank you, I added the ROI callback (simply returning the images full extent) and the top image doesn't look corrupted anymore. I'm so confused as to why the default behavior is any different when an ROI callback is not specified, wow. Still not the end of the story though, when drawing large with interpolation disabled (NSImageInterpolationNone and kCAFilterNearest), the top image is doing something odd, new video here -> http://tclementdev.com/coreimage_metal_test2.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to NWConnection send buffer and when to send more data
Thank you Quinn. It is at least good to have confirmation and know where I can stand. Good to hear you plan to fix it soon as well, even though I have to work with it for now. I have had other issues with custom framers as well (FB9405024, FB9430130). Hopefully the tech will eventually mature and I can use it again.
Replies
Boosts
Views
Activity
Sep ’21
Reply to SwiftUI app cycle and opening an app document
Seems like I have found a solution which is to add .handlesExternalEvents(matching: []) to the WindowGroup.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Reply to App disappears from the share sheet ios 15.3
I'm having this problem too. Is there any solution?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Is there a way to get the built-in list of anchor certificates from the OS?
iOS and macOS. Trying to block real attacks/snooping, not the device owner inspecting traffic.
Replies
Boosts
Views
Activity
Mar ’23
Reply to Is there a way to get the built-in list of anchor certificates from the OS?
Would there be a way to tell whether an instance of SecCertificateRef is trusted as part of the immutable store vs. the system/user keychain?
Replies
Boosts
Views
Activity
Mar ’23
Reply to Is there a way to get the built-in list of anchor certificates from the OS?
@eskimo here it is: FB12059413
Replies
Boosts
Views
Activity
Mar ’23
Reply to Core Image drawing corruption
I've done some further experiments: if I set the CGImage (obtained from the CIImage) directly onto the contents property of the layer of my view, then it works and display fine. But if I implement drawRect() and draw the CGImage into the CGContext using CGContextDrawImage() then it appears corrupted. How weird is that?
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Core Image drawing corruption
For anyone at Apple seeing this, I filed FB12608056 with sample code and screen recording.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel here's a screen recording, top view is drawing the image in drawRect(), bottom view is assigning the image to the layer contents. The bottom view display what I expect. http://tclementdev.com/coreimage_metal_test.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Core Image drawing corruption
@FrankSchlegel wow thank you, I added the ROI callback (simply returning the images full extent) and the top image doesn't look corrupted anymore. I'm so confused as to why the default behavior is any different when an ROI callback is not specified, wow. Still not the end of the story though, when drawing large with interpolation disabled (NSImageInterpolationNone and kCAFilterNearest), the top image is doing something odd, new video here -> http://tclementdev.com/coreimage_metal_test2.mov
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Core Image drawing corruption
The image view width is a multiply of 6 and should be able to represent all pixels as they are without any trick, so it doesn't seem like it should do that.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’23