You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[macOS 26] Fix NSTextField bezel not rendering on SDK 26
On macOS 26, the NSTextField bezel (rounded border) is drawn via a
layer-backed rendering pipeline. Overriding drawRect:, setNeedsDisplay:,
or setNeedsDisplayInRect: on the SWTTextField subclass prevents AppKit
from rendering the native bezel. Similarly, calling setBordered(false)
on an NSTextField destroys the bezel rendering even when no SWT.BORDER
style is requested.
Fix by conditionally skipping the display-invalidation method overrides
(drawRect:, setNeedsDisplay:, setNeedsDisplayInRect:) on the
SWTTextField class when running on macOS SDK 26, while preserving all
mouse, keyboard, gesture, and responder event handling. Also skip
setBordered(false) and setFocusRingType(NSFocusRingTypeNone) calls in
Text.createHandle() on SDK 26 to avoid disrupting the native rendering.
0 commit comments