Hello. I have a problem in my document-based application related to UTIs. I'd like to allow importing of FreeMind files (Extension: mm). I added the following definition to my info.plist
<key>UTImportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.xml</string> </array> <key>UTTypeDescription</key> <string>FreeMind document</string> <key>UTTypeIdentifier</key> <string>org.freemind.mm</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>mm</string> </array> </dict> </dict> </array> and <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>mm</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSItemContentTypes</key> <array> <string>org.freemind.mm</string> </array> <key>LSTypeIsPackage</key> <false/> <key>NSDocumentClass</key> <string>MNDocument</string> </dict> </array> Every time I try to open a mm file I get the following dialog: The document "1.mm" could not be opened. MindNode cannot open files in the "Objective-C++ source code" format. I tried overwriting: - (BOOL)readFromFileWrapper:(NSFileWrapper *)fileWrapper ofType:(NSString *)typeName error:(NSError **)outError - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError - (BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError but those methodes don't get called. As I side note I also declared org.freemind.mm in the NSExportableTypes array of my own data type to allow exporting. This works without a problem. Could it be that it's not allowed to have UTIs with overlapping extensions? Best regards, Markus M. _______________________________________________ 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 [EMAIL PROTECTED]