I'm trying to move my NSPersistentDocument app to use file wrappers for documents. I followed the tutorial, and I can get it working as long as I don't use the LSItemContentTypes key in my info.plist.
When I use the LSItemContentTypes key, my document packages appear as folders. I know that when you use this key, the LSTypeIsPackage is ignored, and you must conform to com.apple.package in the exported UTI. I have done this, and it still doesn't work. Can anyone shed some light on this? I include a paired-down info.plist below. Thanks for any suggestions. Dave <?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>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>myapp</string> </array> <key>CFBundleTypeIconFile</key> <string>sonn</string> <key>CFBundleTypeMIMETypes</key> <array> <string>application/octet-stream</string> </array> <key>CFBundleTypeName</key> <string>Myapp Document</string> <key>CFBundleTypeOSTypes</key> <array> <string>sonn</string> </array> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSItemContentTypes</key> <array> <string>ca.mycompany.myapp-document</string> </array> <key>LSTypeIsPackage</key> <true/> <key>NSDocumentClass</key> <string>MyDocument</string> <key>NSPersistentStoreTypeKey</key> <string>SQLite</string> </dict> </array> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleHelpBookFolder</key> <string>Myapp.help</string> <key>CFBundleHelpBookName</key> <string>ca.mycompany.myapp.help</string> <key>CFBundleIconFile</key> <string>APPL</string> <key>CFBundleIdentifier</key> <string>ca.mycompany.Myapp</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0b38</string> <key>CFBundleSignature</key> <string>Sonn</string> <key>CFBundleURLTypes</key> <array/> <key>CFBundleVersion</key> <string>72</string> <key>LSMinimumSystemVersion</key> <string>10.6.6</string> <key>NSMainNibFile</key> <string>MainMenu</string> <key>NSPrincipalClass</key> <string>MyappApp</string> <key>NSServices</key> <array/> <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.composite-content</string> <string>com.apple.package</string> </array> <key>UTTypeDescription</key> <string>Myapp document</string> <key>UTTypeIconFile</key> <string>sonn.icns</string> <key>UTTypeIdentifier</key> <string>ca.mycompany.myapp-document</string> <key>UTTypeTagSpecification</key> <dict> <key>com.apple.ostype</key> <string>sonn</string> <key>public.filename-extension</key> <array> <string>myapp</string> <string>sonn</string> </array> <key>public.mime-type</key> <string>application/octet-stream</string> </dict> </dict> </array> <key>UTImportedTypeDeclarations</key> <array/> </dict> </plist> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com