Re: plugin theory
Re: plugin theory
- Subject: Re: plugin theory
- From: "Jeffrey J. Early" <email@hidden>
- Date: Sun, 09 Apr 2006 15:05:51 -0700
- Thread-topic: plugin theory
on 4/9/06 10:58 AM, Ryan Glover at email@hidden wrote:
> In my mind, the app should launch, create a list of
> available plugins and populate the menu with their names and only
> when the user selects the menu option is an instance created. Is it
> possible to create a list of available plugins without creating an
> instance of each of the plugins?
Once you have an array of all the valid plug-ins, like Ed Baskerville
showed, you could then query the class to find out how it wants to identify
itself, without actually instantiating the class.
So, I'm suggesting you create a class method like this:
// Class method with the user readable name of this plug in
+ (NSString *) menuItemString;
And you can use this to generate a list of menu items, without any need to
instantiate an object. After the user chooses a particular menu item, then
go ahead and instantiate the object.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden