It seems like this had been covered on-list before, but I can't find the post 
(or maybe it was just mentioned, but without resolution).

Is there a preferred method of having my app "not" load specific QCPatches? I 
don't want to block loading of all QCPatches - it's convenient for this project 
for the app to load QCPatches from the normal folder locations. It's just that 
it seems as though if I load a QCPatch from the resource bundle of my app, and 
it's already existing on a user's install, that the app crashes on start. If 
the QCPatch is just in one place or another, everything is OK.

Right now, I'm loading QCPatches like this:

NSString *pluginPath5 = [[NSBundle mainBundle] pathForResource:@"AudioTools" 
ofType:@"plugin"]; 
[QCPatch loadPlugInAtPath:pluginPath5];//hmm, warning but it does work
         

So, I know that one can load all of the QCPatches in the resources folder in 
one shot, but I'm listing them out one by one. I've tried the method of just 
loading all of the QCPatches in my resources folder instead of explicitly 
listing each one - that works fine too, but still has the "app crashes" 
problem, if a user already has the QCPatch installed in one of their Quartz 
Composer Patches folders.
 
I think I could go down a route of having the app check to see if particular 
QCPatches exist at all three possible folder locations, and then have my app 
load them, if not, but I'm not sure if that's the best route.

Thanks for any thoughts. I realize this is private API, so I'm not necessarily 
expecting support, but I'd like to have it be a little slicker than requiring a 
user to install the QCPatches in their /Library or ~/Library, or make sure that 
they *aren't* installed (not really a possibility). Right now I just have the 
needed QCPatches setup in a DMG with an alias to the /Library folder for the 
user, but it seems slightly cheesy to do that when I'm loading some needed 
QCPlugins from the app resources bundle already.

-gt
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to