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.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: