• 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: Invoking Plug-Ins Sample Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking Plug-Ins Sample Code


  • Subject: Re: Invoking Plug-Ins Sample Code
  • From: Thomas Deniau <email@hidden>
  • Date: Thu, 04 Jul 2002 09:48:55 +0200

Le 4/07/02 0:30, email@hidden disait :

> Does anyone have sample code of how to invoke plug-in modules inside their own
> program? There is many examples on how to write plug-ins, but not how to
> create a plug-in SDK for your own app. The application needs to be able to not
> only invoke the plug-in, but also build a list of available plugs in.
>
> One of the Cocoa API talks at WWDC at exactly that as a demo. Unfortunately,
> the sample code from that talk was never posted (Hint, hint Apple!).

If you can use the Omni Frameworks (actually OmniBase and OmniFoundation I
think) then it has pretty good methods for adding plugins to your
application : it automatically finds them (in directories specified in yout
Info.plist) and then calls a class method of one class of your app
(specified in the plugin's plist). So you can easily invoke them & track
them.
I've written an app which uses the Omni frameworks to load plugins. Feel
free to ask the source if you need it.

--
Thomas Deniau
_______________________________________________
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.

References: 
 >Invoking Plug-Ins Sample Code (From: email@hidden)

  • Prev by Date: Re: Combo box doubts
  • Next by Date: Re: Problem with detached thread
  • Previous by thread: Invoking Plug-Ins Sample Code
  • Next by thread: Java Bridge dead - internal errors
  • Index(es):
    • Date
    • Thread