• 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: Should I try to avoid loading principal class of plug-in?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should I try to avoid loading principal class of plug-in?


  • Subject: Re: Should I try to avoid loading principal class of plug-in?
  • From: Gregory Weston <email@hidden>
  • Date: Sun, 11 Oct 2009 07:36:42 -0400

Rick Mann wrote:

I'm working on a plug-in-based app. While I have to scan all of the
plug-ins and load some information from their info.plists, I don't
necessarily need to load any of the code until a plug-in is actually
used. My main question is, is it worth it to do this? It seems like
that's one advantage of plug-ins, but now I'm at a point where it's
more elegant if I can determine if the plug-in class derives from a
particular base class, rather than storing a key in info.plist (it
would be redundant).

...

Thoughts?

It occurs to me that if you care to distinguish between different kinds of plugins a user may add to the environment, it's possible your users may also want to care. Instead of inventing a new key, why not make them a different document type, with a different extension and icon?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Should I try to avoid loading principal class of plug-in?
      • From: Rick Mann <email@hidden>
  • Prev by Date: re: [iPhone} Exception After Creating First Object
  • Next by Date: Re: [MEET] October CocoaHeads Mac Developer Meetings
  • Previous by thread: Should I try to avoid loading principal class of plug-in?
  • Next by thread: Re: Should I try to avoid loading principal class of plug-in?
  • Index(es):
    • Date
    • Thread