Re: Debugging Plugins
Re: Debugging Plugins
- Subject: Re: Debugging Plugins
- From: Eric Wang <email@hidden>
- Date: Fri, 19 Sep 2003 20:28:38 -0400
on 9/18/03 4:12 PM, Shaun Wexler at email@hidden wrote:
>
My new Panther-only application framework is 100% dynamic plug-in based
>
(the main executable is just 12k), and uses one embedded Shared
>
Framework in the main package, which is linked to by all plug-ins, plus
>
the app. With my class heirarchy, plug-ins can host other plug-ins,
>
and it's all coordinated by two subclasses of NSApplication and
>
NSDocumentController. The main menu is even built by the plug-ins at
>
runtime. Fully Document based, all doc types are provided by plug-ins,
>
where their types are added at runtime from each plug-in's Info.plist,
>
without necessarily loading the executables when registered. When the
>
user creates or loads a document, the app will dynamically activate the
>
appropriate plug-in if its classes are not already loaded. Plug-ins
>
(including those with their own doc types) can also be loaded and
>
activated by the user at any time during runtime. It only takes one
>
category on NSDocumentController with three simple methods to add this
>
dynamic type registration functionality, BTW.
This sounds like a great way to architect a document-based application.
Would you mind elaborating on how you achieved this? What methods did you
have to add/override in your NSDocumentController and NSApplication
subclasses?
Eric Wang
_______________________________________________
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.