Skip to main content
0 votes
1 answer
78 views

import SwiftUI import Combine struct ContentView: View { @State private var activityTimer: Cancellable? @State private var activityCountDownInterval: TimeInterval = 3 @State private var ...
Mark's user avatar
  • 18.4k
5 votes
2 answers
535 views

I'm writing a resizable view in SwiftUI on macOS. Drag its edge can change its size. I'd like to show according cursor when dragging different edges. So I looked up Apple NSCursor documentation, ...
Yiming Designer's user avatar
0 votes
0 answers
371 views

I'm trying to change cursor while the cursor is inside a view. The problem is that the cursor resets to its default automatically sometimes(for example when a notification popup shows up.) class ...
unknown's user avatar
  • 1,038
-1 votes
1 answer
448 views

I made a subclass of NSButton class Button: NSButton { var cursor = NSCursor() override func resetCursorRects() { super.resetCursorRects() ...
jis thottan's user avatar
2 votes
0 answers
501 views

I created a simple macos app project in Swift. The app changes the NSCursor image with a custom image. This works fine but as soon as I click on a different app, e.g. Safari, macos restores the ...
Debru's user avatar
  • 93
0 votes
1 answer
260 views

When I create a custom NSCursor in Objective-C the alpha channel mask appears to XOR the screen below. I am expecting an alpha channel value of zero to be transparent, not XOR the graphics below. I am ...
Bill Appleton's user avatar
4 votes
0 answers
254 views

Disclaimer; barely a novice when it comes to Swift/macOS development. The Ctrl+Shift+4 screenshot tool on macOS, has an accompanying cursor change that I've been looking for a way to replicate. In ...
rhardih's user avatar
  • 893
4 votes
0 answers
250 views

We have an application that has a full screen video player and a floating window (pallet) can be brought up to give users tools to modify the video, there is only one view for video playback and all ...
Nathan Day's user avatar
  • 6,057
1 vote
2 answers
3k views

I have a simple NSTextView, which looks like a hyperlink and I want to change the cursor on the pointer when the user hovers this NSTextView. How can I do it? I know about NSCursor, but apple docs ...
user avatar
2 votes
0 answers
449 views

I want to get the NSCursor for the move cursor (Figure 1). I was looking for cursors that weren't publicly exposed in NSCursor and came across this question. Especially pertinent is the last answer, ...
claudehenry's user avatar
1 vote
1 answer
1k views

I want to use a custom cursor for my project. Now, using one of the system cursors in XCode is no biggie, i simply call: NSCursor.crosshair() .set() (just an example) This works fine but then I try ...
Vaclav's user avatar
  • 11
5 votes
1 answer
819 views

I have a problem while I try to prevent a cursor from changing. I try to put an overlay view over entire window, but, if under that overlay exist an NSTextView, this will force cursor to change. I ...
C-Viorel's user avatar
  • 1,856
1 vote
1 answer
293 views

According to the Cocoa Drawing Guide documentation for Images, NSImage can load a Windows cursor .cur file. But how do I obtain the hotspot needed for NSCursor - initWithImage:(NSImage *)newImage ...
Lars C.Hassing's user avatar
3 votes
2 answers
859 views

In my macOS application, I have a custom WebView. When the user moves the mouse cursor over different elements in the WebView's webpage like text, links, etc. (which are implemented as subviews, I ...
Shiva Prasad's user avatar
0 votes
0 answers
117 views

My app, which accepts drags from other apps, has to choose its own cursors during a drag over its window. For example, it has to be able to show the dragLinkCursor even if the user doesn't hold the ...
Thomas Tempelmann's user avatar

15 30 50 per page
1
2 3 4 5