Post

Replies

Boosts

Views

Activity

Comment on What can I use in place of NSCursor.currentSystemCursor?
I'm working on a tool that takes and displays screenshots of certain windows using CGWindowListCreateImageFromArray. However, I need the screenshot to include the mouse cursor as well. The only way to do that I'm aware of is compositing in the mouse cursor into the screenshot myself, which requires getting an image of the mouse cursor at the time the screenshot is taken. For that I've been using NSCursor.currentSystemCursor.image.
Jul ’24
Comment on What can I use in place of NSCursor.currentSystemCursor?
(Part 1 - comments don't let me write enough text!) I'm not sure if that'll work for my use case, actually. The tool I'm making is essentially a specialized magnifier tool, but I don't necessarily want the magnification to include the cursor as it appears on screen. For one, the cursor may be hidden, with the intent that it'll only be visible in the magnifier. (I'm not sure if SCStreamConfiguration.showsCursor will still allow capturing the cursor even if it's currently hidden.)
Jul ’24