Re: C++ name collisions between plugins
On 8/15/2013 9:29 AM, Ben Syverson wrote: C++ or Objective C? The Obj C runtime doesn't (can't) distinguish between two classes with the same name, so it's problematic for plugins. Now I just prefix every class with the reverse domain, product and version number, like this: ComBenSyversonMattebox2Render It's sort of absurd, but it's the only solution to completely avoid collisions. _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com All my code is C++. I have a thin Objective C FxPlug wrapper around it which does has a unique name (I learned that part a long time ago). Yuck. I don't mind having unique names for the Obj C stuff but I have way too much C++ code to do that with.
participants (1)
-
Paul Miller