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.
Topic: UI Frameworks SubTopic: AppKit Tags:
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.)
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’24
Comment on How to avoid the "Allow XYZ to find devices on local networks" warning when creating a local-system-only Bonjour service and browser?
It's been a few years since I read the dev doc for them, but with MIDI Device Scripts and Logic Pro, I'm pretty sure the only way to enable and interface with them is through a Bonjour service. So in this case there isn't another form of IPC I can use. I created a bug report: FB19587241 I've had bad experiences with the Feedback Assistant before, with the bugs I report getting no response or closed with no comment. So if there's anything you can do to help it along, that would be appreciated!
3w