You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Share extension that needs to know which app triggered it. The extension presents a list of apps and by knowing which app triggered it, it can prioritize that app in the list by moving it to the top.
There are also other use-cases for knowing this:
Working around an app sending buggy/weird NSExtensionItem attachments.
Improve heuristics for which NSExtensionItem attachments and representations to pick.
Let the user opt-into sharing which app originally made the shared item.
Expected Results:
I expected NSExtensionContext to have a .sourceApp property with the name (or NSRunningApplication instance) of the host/trigger app.
Actual Results:
No property like this.
Notes:
My current workaround is to use NSWorkspace.shared.frontmostApplication, but that has timing issues.
The text was updated successfully, but these errors were encountered:
Details
I have a Share extension that needs to know which app triggered it. The extension presents a list of apps and by knowing which app triggered it, it can prioritize that app in the list by moving it to the top.
There are also other use-cases for knowing this:
Expected Results:
I expected
NSExtensionContext
to have a.sourceApp
property with the name (orNSRunningApplication
instance) of the host/trigger app.Actual Results:
No property like this.
Notes:
My current workaround is to use
NSWorkspace.shared.frontmostApplication
, but that has timing issues.The text was updated successfully, but these errors were encountered: