Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 3 replies, 0 views
Replied In
Embedded WindowController inside XPC module
I have a somehow related question @eskimo.
Im planning the plugin architecture for my app.
I'd like to handle all plugin related operations (more about that below) with the XPC.
Right now I'm using the XPC along with the SMLoginItemSetEnabled to launch mini-app that will display image from parent app but the plugin thing is on another level.
For the plugin I have a framework (let's call it the plugin framework) with some classes that the plugin has to inherit from
stuff like info about the plugin (identifier, author etc.).
plugin has to return a NSWindow subclass (actually a subclass of it).
plugin has to return a view that will be used as a preview in my app.
Right now, I'm testing my internal plugins that I load within the app and everything works – I load the bundle, preview are interactive, everything just works. But these are my plugins. So the goal for the new "XPC app" is to act as the middleman between my app and the plugin. The XPC app can load the window provided by the plugin (and I guess I know how to do it, I just have to encode most of the types from my plugin framework) but I don't have any idea what to do about the preview. Because I'd like to load the plugin on the XPC app and then somehow pass the view with the preview to the app.
Any ideas?