Post

Replies

Boosts

Views

Activity

Reply to Lossy option has no effect when exporting PNG to HEIF
The API still fails for CMYK jpg when the compression value is 1.0 (14.5). CIContext can only work with RGB -> it doesn't fail. heifImageDataUsingCIContext(at: url, compressionQuality: 0.99) // 648046 bytes heifImageDataUsingCIContext(at: url, compressionQuality: 1.0) // 1058444 bytes heifImageDataUsingDestination(at: url, compressionQuality: 0.99) // 645421 bytes heifImageDataUsingDestination(at: url, compressionQuality: 1.0) // nil
Topic: Media Technologies SubTopic: General Tags:
Jul ’24
Reply to Error when clicking on TextField : CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them
I am able to reproduce this bug by attaching a textField into accessory view of NSSavePanel + trying to press enter. Once you move focus to the textfield and try to press enter it will print CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them PS: Pressing enter from accessory view worked flawlessly in macOS Ventura and below. class ViewController: NSViewController, NSTextFieldDelegate, NSControlTextEditingDelegate { let savePanel = NSSavePanel() override func viewDidLoad() { super.viewDidLoad() let customView = NSView() let textField = NSTextField(string: "11111111") textField.delegate = self // to get focus using tab keypress savePanel.accessoryView = textField } override func viewWillAppear() { savePanel.runModal() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’24