> Is there no problem making subpatches with the official API as long as I
> just list each subpatch in my QCPluginClasses?


Yes, you can bundle multiple plugins by listing each QCPlugIn subclass in
the Info.plist's QCPlugInClasses.

http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/QuartzComposer_Patch_PlugIn_ProgGuide/

(read that from start to finish).

Can I use those class names in a different plugin later?


No, you should not use the same class names in libraries/bundles which may
be loaded into the same namespace, as there is no way to know which class
implementation will be used, resulting in weird and unpredictable crashes.
Give your classes unique names.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingCode/Tasks/NameConflicts.html

If you re-use a class in a lot of projects you can define a per-project name
for it outside its header (in your project's prefix file, or build
settings):

#define PLUGIN_USEFUL_HELPER_CLASS_UNIQUE_CLASS_NAME
MySeasonalPluginUsefulHelperClass

Then have a header which can be the same for all projects:

#ifndef PLUGIN_USEFUL_HELPER_CLASS_UNIQUE_CLASS_NAME
#error PLUGIN_USEFUL_HELPER_CLASS_UNIQUE_CLASS_NAME is not defined.
#endif

@interface PLUGIN_USEFUL_HELPER_CLASS_UNIQUE_CLASS_NAME : NSObject {
}

// ...
@end

@compatibility_alias UsefulHelperClass
PLUGIN_USEFUL_HELPER_CLASS_UNIQUE_CLASS_NAME;

And then refer to it as UsefulHelperClass in all your code for all your
projects.

On 22 December 2010 23:39, George Toledo <gtole...@gmail.com> wrote:

> Is there no problem making subpatches with the official API as long as I
> just list each subpatch in my QCPluginClasses?
>
> Can I use those class names in a different plugin later?
>
> --
> George Toledo
> gtole...@gmail.com
> www.georgetoledo.com
>
> The information contained in this E-mail and any attachments may be
> confidential.
> If you have received this E-mail in error, please notify us immediately by
> telephone or return E-mail.
> You should not use or disclose the contents of this E-mail or any of the
> attachments for any purpose or to any persons.
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/quartzcomposer-dev/bangnoise%40gmail.com
>
> This email sent to bangno...@gmail.com
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to