BadPistol97

BadPistol97

Issue with Accessibility Visible Text Range

I am trying to draw NSPanels on texts of other apps using AXObserverAddNotification with the attribute of kAXValueChangedNotification on an AXTextArea

I need to detect if the text range on that text area is visible on the screen and I use kAXVisibleCharacterRangeAttribute to get the visible text range but it doesn’t include the top bar of the app and gives a range that starts from an index that is not visible.

Thus the panels are drawn on the app’s top bar like this gif when I scroll to bottom

How do I deal with this?

Popular Mac Os topics Top

First poster: bot
Hackers jailbreak Apple’s T2 security chip powered by bridgeOS - Report Cyber Crime. The Apple T2 security chip has finally been jailbro...
New
OvermindDL1
So it seems that Apple removed the network firewall API a while back and replaced it with another, firewall apps adapted, and come to fin...
New
First poster: bot
MacOS Nix Setup (an alternative to Homebrew). I recently got a new Macbook, and began setting up the Nix package manager to install my d...
New
New
New
PragmaticBookshelf
There’s nothing natural about Functional Programming. It’s awkward, it feels funny, ...And then one day you start to see the world differ...
New
First poster: AstonJ
https://twitter.com/patrickwardle/status/1349488392732491776 This thread was posted by one of our members via one of our news source t...
New
DevotionGeo
Since we’re talking about Mac, which of the filesystems should I use on an external hard drive (non-SSD), which I’ll be using with my Mac...
New
AstonJ
This used to be easy - simply drag whatever files you want to onto a Time Machine disk. Now, macOS reserves the entire APFS disk for Time...
New
AstonJ
Just upgraded to macOS Monterey (12.1) and finding ‘live text’ quite annoying! If anyone else wants to turn it off here’s how: System Pr...
New

Other popular topics Top

malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
ohm
Which, if any, games do you play? On what platform? I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
New
wolf4earth
@AstonJ prompted me to open this topic after I mentioned in the lockdown thread how I started to do a lot more for my fitness. https://f...
New
Exadra37
Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. Does your monitor have eye p...
New
New
AstonJ
This looks like a stunning keycap set :orange_heart: A LEGENDARY KEYBOARD LIVES ON When you bought an Apple Macintosh computer in the e...
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
New
PragmaticBookshelf
Author Spotlight: Karl Stolley @karlstolley Logic! Rhetoric! Prag! Wow, what a combination. In this spotlight, we sit down with Karl ...
New
First poster: bot
zig/http.zig at 7cf2cbb33ef34c1d211135f56d30fe23b6cacd42 · ziglang/zig. General-purpose programming language and toolchain for maintaini...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New