Post

Replies

Boosts

Views

Activity

Reply to API to get the system pointer’s actual rendered size (respecting Accessibility → Pointer size)?
Thanks for the pointer — I tried it out and wanted to share what I found, since it doesn't actually hold up as a way to get the visible size. I wired image.size × scale directly into a tooltip's on-screen offset (rather than just comparing the two numbers side by side) so I could see the result against the real pointer, not just estimate it. As a plain linear multiplier it badly overshoots: at Pointer size = Large (mouseDriverCursorSize = 4.00), the tooltip lands well past the pointer, not just clear of it. That made me wonder if mouseDriverCursorSize is meant as an area ratio rather than linear, so I tried image.size × sqrt(scale) instead. That looked right at scale 2.00 and 4.00 — the tooltip cleared the pointer cleanly. But back at scale 1.00 (Default, where sqrt(scale) is 1, so the offset is just the raw image.size), the tooltip sits noticeably too far from the now-small pointer. So image.size by itself already overestimates the glyph's true visible footprint — probably padding baked into the asset bounds — independent of the scale question entirely. The sqrt result at larger sizes may just be that same baseline error becoming proportionally less visible as the offset grows, not a real fix. So as far as I can tell: raw image.size, image.size × scale, and image.size × sqrt(scale) are all off by varying, inconsistent amounts across the Pointer size range — none of them reliably track the glyph's actual rendered bounding box. Which leaves the original question open: is there a supported way to get that, or a different recommended approach entirely for positioning UI relative to the live pointer without overlapping it? (Also still true what you flagged: even if one of these numbers were right, reading it via UserDefaults would need a Privacy Manifest entry that doesn't currently have an approved reason covering this use — so it's a dead end for Mac App Store distribution either way.)
1w
Reply to API to get the system pointer’s actual rendered size (respecting Accessibility → Pointer size)?
Thanks for the pointer — I tried it out and wanted to share what I found, since it doesn't actually hold up as a way to get the visible size. I wired image.size × scale directly into a tooltip's on-screen offset (rather than just comparing the two numbers side by side) so I could see the result against the real pointer, not just estimate it. As a plain linear multiplier it badly overshoots: at Pointer size = Large (mouseDriverCursorSize = 4.00), the tooltip lands well past the pointer, not just clear of it. That made me wonder if mouseDriverCursorSize is meant as an area ratio rather than linear, so I tried image.size × sqrt(scale) instead. That looked right at scale 2.00 and 4.00 — the tooltip cleared the pointer cleanly. But back at scale 1.00 (Default, where sqrt(scale) is 1, so the offset is just the raw image.size), the tooltip sits noticeably too far from the now-small pointer. So image.size by itself already overestimates the glyph's true visible footprint — probably padding baked into the asset bounds — independent of the scale question entirely. The sqrt result at larger sizes may just be that same baseline error becoming proportionally less visible as the offset grows, not a real fix. So as far as I can tell: raw image.size, image.size × scale, and image.size × sqrt(scale) are all off by varying, inconsistent amounts across the Pointer size range — none of them reliably track the glyph's actual rendered bounding box. Which leaves the original question open: is there a supported way to get that, or a different recommended approach entirely for positioning UI relative to the live pointer without overlapping it? (Also still true what you flagged: even if one of these numbers were right, reading it via UserDefaults would need a Privacy Manifest entry that doesn't currently have an approved reason covering this use — so it's a dead end for Mac App Store distribution either way.)
Replies
Boosts
Views
Activity
1w