The problem I am trying to solve is:
-
I have a macOS document based app
-
Each document contains a list of rows
I would like to have an AddRowIntent.
That intent should take a document as a parameter. I would also like an optional "after row" parameter. When specified the new row will be inserted after that existing row.
I want to use DynamicOptionProvider to generate a list of rows in the selected document to choose from, but I'm unsure how to do this. Is it possible? Or what should is the right design in this case, when an Intent has a container and and item in that container as parameters?