Re: How to make a plugin?
Re: How to make a plugin?
- Subject: Re: How to make a plugin?
- From: Eric Peyton <email@hidden>
- Date: Sun, 8 Jul 2001 21:27:15 -0500
On Sunday, July 8, 2001, at 05:25 PM, Rainer Brockerhoff wrote:
Hi folks,
I'm trying to extend my application with plugins. Two questions:
1) ProjectBuilder has no plugin-specific target. I managed to
create a "bundle" target but this locks me into using the
".bundle" extension, which can't be altered from inside PB...
however I've seen shipping plugins which do use the ".plugin"
extension. How did they do it?
Sure it can - open the target inspector for the bundle, go to the
bundle settings tab, scroll to the bottom, change the line that
reads WRAPPER_EXTENSION = "bundle" to WRAPPER_EXTENSION =
"whatever_the_heck_you_want".
2) In my application's plist I've registered a type for my
plugin/bundle, and inserted a specific icns file for that type.
The prototype plugin builds and loads OK - it even shows the
correct document type information - but the icon is always the
generic document icon.
Yep.
Placing a copy of the icns file inside the bundle doesn't help.
Nope.
Curiously, iTunes devide plugins have type information and icns
files both inside the iTunes app and inside the plugins
themselves - and the Finder shows another icon which is _not_ the
one in the icns files.
Custom bundle types do not use custom .icns, unfortunately. It's a
limitation in Launch Services. I suspect it will be eventually
fixed. For now you need to kludge (i.e. paste the icon you want on
to the ready to ship bundle, etc.)
Eric
Any hints? TIA,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://www.brockerhoff.net/ (updated July 2000)
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev