From d10ca821ae2f3ab62daf92f5e9bde58bf796e36c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 9 Nov 2010 15:40:44 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20spBundle=20file=20extension?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 3 +++ Source/SPConstants.h | 1 + Source/SPConstants.m | 1 + 3 files changed, 5 insertions(+) (limited to 'Source') 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"; -- cgit v1.2.3