adding Sub menu to Context Menu in MacOS

I'm trying to put a sub menu inside the context menu using the NSExtensionFileProviderActions in info.plist. Which should look like this image below

I have been trying to use FPUIActionExtensionViewController for doing this task but I havent got any context menu like above. But still doing that does seem to complicate the task more.

Is there a simpler way to do this task, like doing it within the info.plist so I dont have to complicate the task by creating a view controller. ?

Answered by Engineer in 761371022

Sub-menus are not supported in FileProvider at this time.

As you mentioned, you could use FileProviderUI to provide additional views after clicking a top-level item, but that's not quite the same.

Please file an enhancement request in Feedback Assistant, detailing your use case.

Accepted Answer

Sub-menus are not supported in FileProvider at this time.

As you mentioned, you could use FileProviderUI to provide additional views after clicking a top-level item, but that's not quite the same.

Please file an enhancement request in Feedback Assistant, detailing your use case.

Hello, I am using a combination of NSFileLayoutCustomizaction and userInfo to do it, but I don't know if there are any restrictions on the use of this userInfo, as long as it is related to userInfo, the NSExtendeFileLayoutActionActivation Rule in info will not take effect?

adding Sub menu to Context Menu in MacOS
 
 
Q