Permalink
Browse files

#14 uti to net.freemind.mindmap

  • Loading branch information...
1 parent 3e5a6d0 commit 61bd920bdf4b80b31c1085d4a82a326d3a893f69 Tae Won Ha committed May 6, 2013
Showing with 14 additions and 6 deletions.
  1. +1 −1 Qmind/QMDocument.h
  2. +7 −1 Qmind/QMDocument.m
  3. +5 −3 Qmind/Qmind-Info.plist
  4. +1 −1 QmindLook/QmindLook-Info.plist
View
@@ -10,7 +10,7 @@
#import "QMMindmapViewDataSource.h"
static NSString * const qMindmapVersion = @"0.9.0";
-static NSString * const qMindmapUti = @"com.qvacua.mindmap";
+static NSString * const qMindmapUti = @"net.freemind.mindmap";
static NSString * const qObjectiveCppUti = @"public.objective-c-plus-plus-source";
@class QMDocumentWindowController;
View
@@ -501,7 +501,10 @@ - (void)initRootNodeProperties {
*/
- (id)initWithType:(NSString *)typeName error:(NSError **)outError {
- if (![typeName isEqualToString:qMindmapUti]) {
+ /**
+ * public.objective-c-plus-plus-source wins over net.freemind.mindmap
+ */
+ if (![typeName isEqualToString:qMindmapUti] && ![typeName isEqualToString:qObjectiveCppUti]) {
log4Warn(@"Trying to open an unsupported file: %@", typeName);
return nil;
}
@@ -546,6 +549,9 @@ - (BOOL)readFromFileWrapper:(NSFileWrapper *)fileWrapper ofType:(NSString *)type
}
- (NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error:(NSError **)outError {
+ /**
+ * public.objective-c-plus-plus-source wins over net.freemind.mindmap.
+ */
if (![typeName isEqualToString:qMindmapUti] && ![typeName isEqualToString:qObjectiveCppUti]) {
log4Warn(@"Trying to save an unsupported file: %@", typeName);
return nil;
View
@@ -19,14 +19,14 @@
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
- <string>com.qvacua.mindmap</string>
+ <string>net.freemind.mindmap</string>
<string>public.objective-c-plus-plus-source</string>
</array>
<key>NSDocumentClass</key>
<string>QMDocument</string>
<key>NSExportableTypes</key>
<array>
- <string>com.qvacua.mindmap</string>
+ <string>net.freemind.mindmap</string>
<string>public.objective-c-plus-plus-source</string>
</array>
</dict>
@@ -73,7 +73,9 @@
<key>UTTypeDescription</key>
<string>Mindmap</string>
<key>UTTypeIdentifier</key>
- <string>com.qvacua.mindmap</string>
+ <string>net.freemind.mindmap</string>
+ <key>UTTypeReferenceURL</key>
+ <string>http://freemind.sf.net</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
@@ -11,7 +11,7 @@
<string>QLGenerator</string>
<key>LSItemContentTypes</key>
<array>
- <string>com.qvacua.mindmap</string>
+ <string>net.freemind.mindmap</string>
<string>public.objective-c-plus-plus-source</string>
</array>
</dict>

0 comments on commit 61bd920

Please sign in to comment.