Re: Looking for info on creating Plugins/Modules
Re: Looking for info on creating Plugins/Modules
- Subject: Re: Looking for info on creating Plugins/Modules
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 12 Dec 2008 18:01:23 +0100
Le 12 déc. 08 à 17:19, glenn andreas a écrit :
On Dec 12, 2008, at 9:37 AM, Sherm Pendley wrote:
On Dec 12, 2008, at 4:05 AM, Chris Hanson wrote:
- Your plug-ins should have a document type and UTI declared in
your app's Info.plist so they can be recognized as file packages
rather than folders by the Finder and get a nice icon.
Another nice effect of this is the same behavior you get from the
System Preferences app with respect to .prefPane bundles. When you
double click on a plug-in, the app to which it belongs can open it
and ask if you wish to install it, and if so whether to do so for
all users (/Library/Application Support) or just for yourself (~/
Library/Application Support).
This is a very nice end user experience IMHO. It saves them the
trouble of having to navigate through folders they're likely to be
unfamiliar with in order to "install" the plug-in.
sherm--
OTOH, if your plugin has the suffix "plugin" (and live in the
appropriate directory in your app) your user will be able to manage
plugins directly from the Finder. So if you take an application
that does this, and do a "get info" on it in the finder, one of the
panels in the info window will be "Plug Ins", listing all the
plugins in the application, with checkboxes next to them (so you can
deactivate them), and a "+" and "-" button that will allow you to
add/remove other plugins (this works just like being able to add/
remove language localizations for an app).
It's really quite slick, but rarely used. Its just unfortunate that
it has to have the generic "plugin" suffix...
My app's plug-ins have a different extension (than "plugin") and
appears correctly in the "Get Info" panel of the Finder. I think that
as long as you put them in the Bundle PlugIns directory (the one
returns by the NSBundle method) the Finder is able to find them and to
manage them.
_______________________________________________
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