ExploreTrendingAnalytics
Nostr Archives
ExploreTrendingAnalytics
Frederik Handberg14d ago
I probably need to call the super keyword on `resetCursorRects()` to inherit the default cursor functionality and then use `addCursorRect(bounds, cursor: .arrow)` to register the area where the cursor should be an arrow. https://developer.apple.com/documentation/appkit/nsview/r…) https://developer.apple.com/documentation/appkit/nsview/a…)
💬 0 replies

Thread context

Root: 05ef509f414f…

Replying to: 5512155be5c1…

Replies (1)

Frederik Handberg14d ago
The idea is that I should have a reusable view I can call wherever I wish to override the cursor to the arrow. For example `.background(ArrowCursorView())`. And then it can of course be extended to also support different `NSCursor` types, such as `.pointingHand`.
0000 sats