Macos uses NSFilePrefertAction and userInfo to implement context menu, but it does not take effect

On the macOS platform, I am planning to use the combination of NSFileProviders Custom Action and userInfo to implement custom context menus. However, the NSExtensions FileProviders Action Activation Rule in info does not work as long as it is related to userInfo. Are there any restrictions on the use of this userInfo? keepDownloaded is bool value

Are you starting with a fresh domain when testing? Or pushing updates to the items on the working set, if not a fresh domain? Simply implementing -[NSFileProviderItem userInfo] will not cause the userInfo to be obtained by the system. The system only queries the userInfo property when the items are being synced.

Macos uses NSFilePrefertAction and userInfo to implement context menu, but it does not take effect
 
 
Q