Thursday, April 1, 2010

How to make plugin resident on Mac OS?

Does anyone have a way to do this? It has to work for both automate and filter plugins.



I've tried the following:



1. Persistent property in PiPl. This works for automate plugins in CS3, but not CS2. It doesn't seem to work for filter plugins.



2. Call SPAccess AcquirePlugin() on own plugin ref. This is documented to work but always returns !Acq. This is weird because GetPluginAccess() works fine (but doesn't bump the reference count.)



3. Use SPPlugins to hunt through list returned by GetRuntimePluginList() so I can have one of my plugins find the other and load it and vice versa. My plugins are not in this list. In fact it's almost empty.



4. Try using CFBundle functions to keep the executable loaded. Doesn't work.

No comments:

Post a Comment