Re: Best 'Cocoa' File Preview
Re: Best 'Cocoa' File Preview
- Subject: Re: Best 'Cocoa' File Preview
- From: David Blanton <email@hidden>
- Date: Mon, 13 Jul 2009 14:02:15 -0600
Here is my info.plist I am trying to get a callback for files ending
in .pes
My code still does not break. The breakpoint is orange outlined in
blue (?)
Please shed some light ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.britonleap.pes</string>
<key>UTTypeDescription</key>
<string>Brother/Babylock/Bernina Home Embroidery Format</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.britonleap.qlgenerator.${PRODUCT_NAME:identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleShortVersionString</key>
<string>1</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFPlugInDynamicRegisterFunction</key>
<string></string>
<key>CFPlugInDynamicRegistration</key>
<string>NO</string>
<key>CFPlugInFactories</key>
<dict>
<key>FC6CD5CE-323B-492E-A7EA-3C5387644D5D</key>
<string>QuickLookGeneratorPluginFactory</string>
</dict>
<key>CFPlugInTypes</key>
<dict>
<key>5E2D9680-5022-40FA-B806-43349622E5B9</key>
<array>
<string>FC6CD5CE-323B-492E-A7EA-3C5387644D5D</string>
</array>
</dict>
<key>CFPlugInUnloadFunction</key>
<string></string>
<key>QLNeedsToBeRunInMainThread</key>
<false/>
<key>QLPreviewHeight</key>
<real>600</real>
<key>QLPreviewWidth</key>
<integer>600</integer>
<key>QLSupportsConcurrentRequests</key>
<false/>
<key>QLThumbnailMinimumSize</key>
<integer>32</integer>
</dict>
</plist>
On Jul 13, 2009, at 7:38 AM, Julien Jalon wrote:
On Monday, July 13, 2009, David Blanton <email@hidden> wrote:
Is it not the case that the UTI is defined in the info.plist
CFBundleDocumentTypes? (which I have done).
Nope, CFBundleDocumentTypes associates your type to the plugin. You
should use UTExportedTypes or UTImportedTypes
look for "declaring UTI in info.plist" in google, you'll find exactly
what you need.
--
Julien
_______________________________________________
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