Re: Loading 2 classes with same name
Re: Loading 2 classes with same name
- Subject: Re: Loading 2 classes with same name
- From: Scott Anguish <email@hidden>
- Date: Fri, 8 Aug 2003 06:26:39 -0400
On Friday, August 8, 2003, at 1:46 AM, j o a r wrote:
One thing you can do before loading the bundle is use NSBundle to
check the principal class key. This should give you some clue as to
wether you'll clash or not, and is one of the few things you can check
without having to load the bundle. Granted, it only gives you
information about the class name of one class in the bundle...
That's assuming that the plug-in spec isn't better than minimal.
When designing plug-ins, I've always included a plist that had all the
information I might need without wanting to load the bundles. Class
types, any icons that you might want to display, localizable string
keys for the bundle name, perhaps a description of what the bundle
does.
The goal being only loading the bundle code when absolutely necessary.
Otherwise I think that this is something that you need to think of as
a plugin / bundle developer. Prefix your custom class and method names
properly!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.