How to make a plugin?
How to make a plugin?
- Subject: How to make a plugin?
- From: Rainer Brockerhoff <email@hidden>
- Date: Sun, 8 Jul 2001 19:25:52 -0300
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?
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. Placing a copy of the icns file inside the bundle doesn't help. 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.
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)