• 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: Ben Dougall <email@hidden>
  • Date: Sat, 9 Aug 2003 02:23:01 +0100

don't classes have a version number? i think classes have a version number variable in their objective-c structure. maybe that comes into play when two classes of the same name appear? just guessing.

On Friday, August 8, 2003, at 11:26 am, Scott Anguish wrote:

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.
_______________________________________________
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: John Randolph <email@hidden>
References: 
 >Re: Loading 2 classes with same name (From: Scott Anguish <email@hidden>)

  • Prev by Date: Why my object becomes invalid ?
  • Next by Date: Re: Pattern recognition
  • Previous by thread: Re: Loading 2 classes with same name
  • Next by thread: Re: Loading 2 classes with same name
  • Index(es):
    • Date
    • Thread