• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading 2 classes with same name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Loading 2 classes with same name
      • From: Ben Dougall <email@hidden>
References: 
 >Re: Loading 2 classes with same name (From: Wade Tregaskis <email@hidden>)
 >Re: Loading 2 classes with same name (From: j o a r <email@hidden>)

  • Prev by Date: [OT] New employer wanted
  • Next by Date: How to manage callback methods?
  • Previous by thread: Re: Loading 2 classes with same name
  • Next by thread: Re: Loading 2 classes with same name
  • Index(es):
    • Date
    • Thread