Skip to content

Question - How do I create UI elements based on AXNotifications #40

@avnerbarr

Description

@avnerbarr

I realize the question is a bit vague, but the Apple documentation is horrendous and hoping you could assist.

Basically, imagine a scenario where you are assisting in spell checking (or some other text manipulation of the given keystrokes in a text element).

I want to listen for events on the text element, run some text processing, and present a popup dialogue that the user can interact with.
Once the user selects (or escapes) out of the dialogue I should be able to replace the typed text

I've gone through the "actions", "attributes" and various other documentation I could find but see nothing about how to create elements.

You can see this type of interaction in apps like Grammarly and Fig etc.

I can't seem to find ANY code at all with examples for this 🤔

No Apple documentation seems to exist as well...

image

Pasted_Image_19_03_2023__14_33
Pasted_Image_19_03_2023__14_33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions