Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 0
Generated: 18:54:40
🚨 I have an #AppKit pro tip for y’all that I just learned!!! 🚨 If you have an `NSView` above an `NSTextView` and you want to change `NSCursor` when hovering the `NSView` to something like `NSCursor.pointingHand`, you need to make sure you don't call `super.mouseMoved(with: event)`. If you call `super` on your `mouseMoved` event, it will override the `NSCursor` to the default. The default `NSCursor` for `NSTextView` is the `NSCursor.iBeam`, so you will experience the pointingHand to show very briefly, but then immediately be changed to the iBeam when you hover over the `NSView`. I have spent the past three hours trying to figure out a solution to the cursor flickering and I literally just fixed it. #dev #Swift #AppKit
2025-11-09 22:30:09 from 1 relay(s)
Login to reply