Define a document type inside a plugin
Define a document type inside a plugin
- Subject: Define a document type inside a plugin
- From: Damien Bobillot <email@hidden>
- Date: Tue, 27 Sep 2005 22:29:36 +0200
Hello,
I have an application allowing to write plugins to support new
documents. I wrote a plugin for a specific document type, and I would
like to add a icon and a description for this document kind.
My plugin has the following key set in its Info.plist file :
- CFBundleDocumentTypes
- CFBundlePackageType = BNDL
- CFBundleIconFile
There's a correct PkgInfo file.
The extension of my plugin bundle is ".myplugin".
I've tried to run lsregister -v -lint on my plugin package and it
seems to work :
lsregister: processing ...
lsregister: registered ...
With lsregister -dump, I get the following entry :
path: /Users/damien/Programmes/MyPlugin/build/
Deployment/MyPlugin.myplugin
name: MyPlugin
identifier: fr.bobillot.MyPlugin
type code: 'BNDL'
creator code: 'OCml'
flags: relative-icon-path ppc
item flags: container package native-app
icon: Contents/Resources/icon.icns
executable: Contents/MacOS/MyPlugin
=> my document types are not registered.
Even if I force the Finder to restart, my plugin don't have the good
icon in the Finder.
Any ideas ?
--
Damien Bobillot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden