-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are we meant to use TophatKit
externally?
#65
Comments
TophatKit
?TophatKit
externally?
Hi @luispadron, extensions in macOS are supposed to be hosted within standalone macOS apps. The host macOS app need not necessarily be running, but its presence on the system exposes the extension to Tophat. A good example of this would be Safari extensions, for example. They are installed from the App Store as applications and then provide the extension that they host back to Safari. There are a few more details in TophatKit's README, but in summary, you must embed your extension in a standalone host application, even if it's just an empty shell. |
Ah interesting, thank you for the fast info! I considered that but was confused what the bundle-id for the host application should be given the extension must be |
The bundle ID of the extension can be whatever you want, only the The only reason you happen to see the same bundle ID used for the extensions built into Tophat is because they're embedded within Tophat itself, but this not required for external extensions. External extension bundle IDs only need to match the bundle ID of the parent application they are embedded in. |
Ah! Got it to show up by adding a |
Shouldn't need to add a Glad you have something working!
That also works though it does make it more difficult to actually distribute the extension (potential Gatekeeper or other security issues, I imagine). Though if you can come up with a robust solution that can make this easy to install for your organization, then that's fine too. |
Right, I think I was missing some conformance to the TophatKit protocols which adding the settings view helped me resolve |
I'm trying to build an external extension (for 2.0) that reaches our private build network, I'm able to produce a
.appex
usingTophatKit
but not sure what to do with that. Is this supposed to be installed somewhere?The text was updated successfully, but these errors were encountered: