diff options
-rw-r--r-- | Resources/Plists/Info.plist | 49 | ||||
-rw-r--r-- | Source/SPAppController.m | 3 | ||||
-rw-r--r-- | Source/SPConstants.h | 1 | ||||
-rw-r--r-- | Source/SPConstants.m | 1 |
4 files changed, 54 insertions, 0 deletions
diff --git a/Resources/Plists/Info.plist b/Resources/Plists/Info.plist index c041b8ae..ecf74ffb 100644 --- a/Resources/Plists/Info.plist +++ b/Resources/Plists/Info.plist @@ -32,6 +32,7 @@ <key>CFBundleTypeExtensions</key> <array> <string>spTheme</string> + <string>sptheme</string> </array> <key>CFBundleTypeIconFile</key> <string>appicon.icns</string> @@ -77,6 +78,31 @@ <dict> <key>CFBundleTypeExtensions</key> <array> + <string>spBundle</string> + <string>spbundle</string> + </array> + <key>CFBundleTypeIconFile</key> + <string>spficon.icns</string> + <key>CFBundleTypeName</key> + <string>Sequel Pro Bundle</string> + <key>CFBundleTypeOSTypes</key> + <array> + <string>sequel pro bundle</string> + </array> + <key>CFBundleTypeRole</key> + <string>Editor</string> + <key>NSDocumentClass</key> + <string>SPDocumentController</string> + <key>LSItemContentTypes</key> + <array> + <string>com.google.code.sequel-pro.spbundle</string> + </array> + <key>LSTypeIsPackage</key> + <true/> + </dict> + <dict> + <key>CFBundleTypeExtensions</key> + <array> <string>sql</string> </array> <key>CFBundleTypeIconFile</key> @@ -212,6 +238,28 @@ </dict> <dict> <key>UTTypeDescription</key> + <string>Sequel Pro Bundle</string> + <key>UTTypeIconFile</key> + <string></string> + <key>UTTypeIdentifier</key> + <string>com.google.code.sequel-pro.spbundle</string> + <key>UTTypeConformsTo</key> + <array> + <string>com.apple.package</string> + </array> + <key>UTTypeTagSpecification</key> + <dict> + <key>com.apple.ostype</key> + <string>sequel pro bundle</string> + <key>public.filename-extension</key> + <array> + <string>spbundle</string> + <string>spBundle</string> + </array> + </dict> + </dict> + <dict> + <key>UTTypeDescription</key> <string>SQL File</string> <key>UTTypeIconFile</key> <string></string> @@ -249,6 +297,7 @@ <key>public.filename-extension</key> <array> <string>spTheme</string> + <string>sptheme</string> </array> </dict> </dict> diff --git a/Source/SPAppController.m b/Source/SPAppController.m index e94f52ac..97ea3ba8 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -460,6 +460,9 @@ return; } } + else if([[[filename pathExtension] lowercaseString] isEqualToString:[SPUserBundleFileExtension lowercaseString]]) { + NSLog(@"Be patient…"); + } else { NSLog(@"Only files with the extensions ‘%@’, ‘%@’, ‘%@’ or ‘%@’ are allowed.", SPFileExtensionDefault, SPBundleFileExtension, SPColorThemeFileExtension, SPFileExtensionSQL); } diff --git a/Source/SPConstants.h b/Source/SPConstants.h index 29207b89..95660f39 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -227,6 +227,7 @@ extern NSString *SPFileExtensionDefault; extern NSString *SPFileExtensionSQL; extern NSString *SPBundleFileExtension; extern NSString *SPColorThemeFileExtension; +extern NSString *SPUserBundleFileExtension; // File names extern NSString *SPHTMLPrintTemplate; diff --git a/Source/SPConstants.m b/Source/SPConstants.m index 1b76d688..d17ddd13 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -48,6 +48,7 @@ NSString *SPFileExtensionDefault = @"spf"; NSString *SPBundleFileExtension = @"spfs"; NSString *SPFileExtensionSQL = @"sql"; NSString *SPColorThemeFileExtension = @"spTheme"; +NSString *SPUserBundleFileExtension = @"spBundle"; // File names NSString *SPHTMLPrintTemplate = @"SPPrintTemplate"; |